16.01.2014, 22:07
Hello guys, I have a problem, I created a command to move a gate with only the Z angle, but I wanted him to move slowly, but it moves in time to the send position, and I do not want this happen, since I set the speed to 5, but nothing ...
I'll give an example here of the command:
So in this case I wanted the gate to move the Z "0" angle to the Z "90" slowly, but no matter what the set speed, angle it moves in time. Can anyone help me? Thank you ...
I'll give an example here of the command:
pawn Код:
if (PlayerToPoint(7.0, playerid, X,Y,Z))
{
MoveObject( portao,X, Y, Z, 5, aX, aY, 0.0);
SendClientMessage(playerid, COR, "Opening Gate");
}
else if (PlayerToPoint(7.0, playerid, X,Y,Z))
{
MoveObject( portao,X, Y, Z, 5, aX, aY, 90.0);
SendClientMessage(playerid, COR, "Closing Gate");
}