SA-MP Forums Archive
Rotating object while moving - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Rotating object while moving (/showthread.php?tid=595059)



Rotating object while moving - Lenon - 27.11.2015

How I can make object to rotate while moving?

I tryed like this:

Код:
new grass;
grass = CreateObject(702,-172.7709,1688.5282,16.3303, 0, 0, 0, 300.00);
MoveObject(grass, -180.6491, 1685.0883, 17.5278, 0.0, -360.0000, 0.0, 2.0);
Object need to be moved to this coordinates 180.6491, 1685.0883, 17.5278 .


Re: Rotating object while moving - CmZxC - 27.11.2015

Format for MoveObject is as follows
PHP код:
(objectidFloat:XFloat:YFloat:ZFloat:SpeedFloat:RotX = -1000.0Float:RotY = -1000.0Float:RotZ = -1000.0
You just have to change in your code the -360.0000, 0.0, 2.0); part with the rotation you want it to be.