MoveDynamicObject gate with speed
#1

I have gates for faction by the command /gate it opens the nearest gate, the problem is it open on "suddenly" and close too. i want with the gate with speed - but with same Rot, the gates with the "suddenly" i'm using SetDynamicObjectRot function.
I heard the only way to move it slowly and not bam is MoveDynamicObject, i tried this but the gate doesn't move up and down.

Код:
new TollGate;

TollGate = CreateDynamicObject(968, 55.5, -1528.90002, 4.7, 0, 90, 82.09);

My function: 
SetDynamicObjectRot(TollGate, 0.000000, 0, 90); and SetDynamicObjectRot(TollGate, 0.000000, 90, 82.09); for close and open
Please help me how to do the following function correctly with that coordiantes and make it move slow up and down (default speed is 3)

MoveDynamicObject(968, 55.5, -1528.90002, 4.7, 0, 90, 82.09);

Reply
#2

When opening:
pawn Код:
MoveObject(TollGate, 55.5, -1528.9, 4.7, 1, 0, 0, 90);
When closing:
pawn Код:
MoveObject(TollGate, 55.5, -1528.901, 4.7, 1, 0, 90, 82.09);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)