[Question] Rotating attached 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: [Question] Rotating attached object. (
/showthread.php?tid=457978)
[Question] Rotating attached object. -
[WSF]ThA_Devil - 14.08.2013
Is it really possible to smoothly rotate attached object ( to vehicle perhaps )
like if there was some fancy plane car that with one button press could open its wings or something.
^ that was an example.
Just tested and noted that MoveObject doesn't take effect while being attached.
As well as SetObjectRot didn't work
Re: [Question] Rotating attached object. -
Tamer - 14.08.2013
Try this:
https://sampwiki.blast.hk/wiki/MoveObject
I think it should work, but Im not sure.
"This function can be used to make objects rotate smoothly. In order to achieve this however, the object must also be moved."
So try moving it a bit, then rotating it and then move it to the old pos (these all happen in miliseconds anyway)
Re: [Question] Rotating attached object. -
[WSF]ThA_Devil - 14.08.2013
Quote:
Originally Posted by Tamer T
Try this:
https://sampwiki.blast.hk/wiki/MoveObject
I think it should work, but Im not sure.
"This function can be used to make objects rotate smoothly. In order to achieve this however, the object must also be moved."
So try moving it a bit, then rotating it and then move it to the old pos (these all happen in miliseconds anyway)
|
By that you meant attaching / detaching it and so on?
That would look bad at player side because of networking flaws and timer offsets.
Re: [Question] Rotating attached object. -
ProjectMan - 14.08.2013
I think this will overload (lag) your server if it is done by everyone.
Re: [Question] Rotating attached object. -
[WSF]ThA_Devil - 14.08.2013
Quote:
Originally Posted by ProjectMan
I think this will overload (lag) your server if it is done by everyone.
|
That's what I said before.
Re: [Question] Rotating attached object. -
Edix - 14.08.2013
Try to keep attaching the object and changing the rotation/position as you want/need.
https://sampwiki.blast.hk/wiki/AttachObjectToPlayer