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