SA-MP Forums Archive
Rotate object - 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: Rotate object (/showthread.php?tid=637765)



Rotate object - FranQ - 20.07.2017

I want to rotate an object automatically

Код:
white_arrow_taxi = CreateDynamicObject(1318, 1783.256225, -1867.430175, 13.570199, 0, 0, 1000);
MoveDynamicObject(white_arrow_taxi, 1783.256225, -1867.430175, 13.570199, 2.0, 0.0, 0.0, -1000);
only moves in X, Y, and Z


Re: Rotate object - TonyII - 21.07.2017

I'm not sure but I think there is a function called SetDynamicObjectRot


Re: Rotate object - Pottus - 21.07.2017

MoveObject() and MoveDynamicObject() not needed at all.
http://dev.prineside.com/en/gtasa_sa...1276-package1/

This object rotates and if you attach another object to it that object will rotate as well no need for doing bullshit MoveObject() eating up resources.

All you need to do is make sure you attach the object at a good z-offset then you can set the rotating object well below the floor. Let the client do the work when you can!