Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Making a buildup with Timers and Set_Position?
Re: Making a buildup with Timers and Set_Position? [message #378452 is a reply to message #378407] Thu, 02 April 2009 12:53 Go to previous messageGo to previous message
whtdrgnpl is currently offline  whtdrgnpl
Messages: 17
Registered: July 2007
Karma:
Recruit
Still doesn't move :/

danpaul88 wrote on Thu, 02 April 2009 05:06

What are you calling it on? The exterior terrain preset, the building controller or one of the interior tiles? If it's the controller then your only moving the actual controller and not the building itself... as for the exterior terrain, I don't think you CAN move terrain, but I have never tried it.


I'm calling it on this:
position = Commands->Get_Position(Get_GameObj(ID));
position.Z -= 12.0f;
Console_Input(StrFormat("sndp %d m00evan_dsgn0002i1evan_snd.wav",ID).c_str());
Set_Money(ID,Commands->Get_Money(Get_GameObj(ID))-3000);
GameObject *ncy = Commands->Create_Object("GDI Gunboat",position);
Commands->Set_Model(ncy, "enc_ncon");
Commands->Set_Player_Type(ncy,0);
Commands->Attach_Script(ncy,"NodCYTimer","");


nopol10 wrote on Thu, 02 April 2009 06:29

You have to start the timer again at the end of the event or at whichever part is needed for it to run, else it only runs once.


I don't really get what you mean Huh but uh these are the timers I have for it.
void NodCYTimer::Created(GameObject *obj) {
	Commands->Start_Timer(obj,this,10.0f,1);
	Commands->Start_Timer(obj,this,20.0f,2);
	Commands->Start_Timer(obj,this,30.0f,3);
	Commands->Start_Timer(obj,this,40.0f,4);
	Commands->Start_Timer(obj,this,50.0f,5);
	Commands->Start_Timer(obj,this,60.0f,6);
	Commands->Start_Timer(obj,this,70.0f,7);
	Commands->Start_Timer(obj,this,80.0f,8);
	Commands->Start_Timer(obj,this,90.0f,9);
	Commands->Start_Timer(obj,this,100.0f,10);
	Commands->Start_Timer(obj,this,110.0f,11);
	Commands->Start_Timer(obj,this,126.0f,12);
}

[Updated on: Thu, 02 April 2009 12:54]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scrin's Ultimates Collection (update)
Next Topic: extending?
Goto Forum:
  


Current Time: Thu Jan 23 10:22:48 MST 2025

Total time taken to generate the page: 0.01029 seconds