[Help] Movement ojects (rotation)
#1

Well it is easy to move any object, but it is difficult to'm trying to do and I am able, I tried to use, and GetObjectRot SetObjectRot but nothing works, my goal is to make the barrier (which you have been in the picture below) next to the house open and close. It is not there by default, is a subject that I added (as it were a regular gate s), and as such wanted to move it, so as to move him getting to the top. If anyone can help me, I thank you.


[img width=1024 height=640]/imageshack/img714/2568/12724742.jpg[/img]
Reply
#2

hm.. the barrier raises and rotates at one time. the moving path is the 1/4 circle clockwise, so its a sin/cos transformation. the rotation itself is the corresponding angle.. the only data needed is the lenght of that object, i will figure it out
erm.... whats the ID of the barrier?
edit (for those who are too lazy to use ****** like me): 968
edit:
the barrier only needs being rotated by 90 degrees Y, then its open
barrier coords/rotations (closed): -1572.2009, 658.8203, 6.8498, 0.0000, 90.0000, 90.0000
barrier coords/rotations (opened): -1572.2009, 658.8203, 6.8498, 0.0000, 0.0000, 90.0000
Reply
#3

Sorry but I do not get it in my GM so I teno

portaopolicia4 = CreateDynamicObject(968, -1701.4477539063, 687.59820556641, 24.71081161499, 0.000000, 270, 90); //object (barrierturn) (1)

and wanted so po

portaopolicia4 = CreateDynamicObject(968, -1701.4477539063, 687.59820556641, 24.71081161499, 0.000000, 0, 90); //object (barrierturn) (1)

but with the Moveobject not work, so I've tried with and with SetObjectrot GetOjectRot, but neither worked.
Why esou endindo help, we are very grateful if I could help.
Reply
#4

Make the opening command delete the barrier, and create a new one with the new rotation, and when you close the barrier again, it deletes the object, and creates a new, closed one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)