Moving gate with angle Z
#1

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:

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");
        }
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 ...
Reply
#2

The speed is in milliseconds I believe sooo 1000 = 1 second. 5 = 5/1000 of a second, give it a shot with 5000 (5 seconds) or 10000 (10 seconds) and post back. I think this is your problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)