SA-MP Forums Archive
SetObjectRot - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetObjectRot (/showthread.php?tid=256536)



SetObjectRot - zxc1 - 21.05.2011

Hello Everyone,

I'm trying to script gate that opens by command.
My Question is, there are some way to convert SetObjectRot to MoveDynamicObject (or just to MoveObject) ?


Re: SetObjectRot - [DM]Kane - 21.05.2011

Not sure, but I think we can with some angle calculations. But why don't you simply use MoveObject?


Re: SetObjectRot - zxc1 - 21.05.2011

The script that I working on him it's script that I and my friend built year ago.
We took some vacation from SAMP.
So now I don't remember everything, I don't even remember why we used SetObjectRot.

So now I need help to convert it to MoveObject.


Re: SetObjectRot - [DM]Kane - 21.05.2011

I think you should re-code the gate command using MoveObject if you have the map or the objects info. It would be easier. :P


Re: SetObjectRot - zxc1 - 22.05.2011

But maybe there are some way to convert it?


Re: SetObjectRot - GangsTa_ - 22.05.2011

Use Edit>Replace I guess, and replace them.


Re: SetObjectRot - Sascha - 22.05.2011

dude... "SetObjectRot" changes the heading of an object..
"MoveObject" ONLY the position... you can only change the x, y and z coord with MoveObject and the ax, ay, az with SetObjectRot...

if you are using a streamer check out the release page of it (on this forum) and check out for the functions..
I guess it'll be something like SetDynamicObjectRot(objectid, ax, ay, az);


so you cannot replace SetObjectRot with MoveObject


Re: SetObjectRot - zxc1 - 22.05.2011

Thank you Sascha !!!!!!
Everything Working.