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?
icon5.gif  Making a buildup with Timers and Set_Position? [message #378399] Thu, 02 April 2009 00:37 Go to previous message
whtdrgnpl is currently offline  whtdrgnpl
Messages: 17
Registered: July 2007
Karma:
Recruit
I'm trying to make a build up thing using timers and Set_Position but whenever I use it, it doesn't move at all... but the timer part works it's just not moving the conyard at all. Does Set_Position only work on players?

void NodCYTimer::Timer_Expired(GameObject *obj, int number) {
	Vector3 position;
	position = Commands->Get_Position(obj);
		if (number == 1){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 2){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 3){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 4){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 5){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 6){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 7){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 8){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 9){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 10){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 11){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
		}
		if (number == 12){
			position.Z += 1.0f;
			Commands->Set_Position(obj,position);
			Console_Input("snda m00bgwf_dsgn0004i1evag_snd.wav");
		}
}

[Updated on: Thu, 02 April 2009 00:38]

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: Mon Nov 11 06:11:28 MST 2024

Total time taken to generate the page: 0.00750 seconds