[Question] Rotating attached object.
#1

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
Reply
#2

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)
Reply
#3

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.
Reply
#4

I think this will overload (lag) your server if it is done by everyone.
Reply
#5

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.
Reply
#6

Try to keep attaching the object and changing the rotation/position as you want/need.

https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)