06.08.2013, 20:04
pawn Код:
new gGate;
// create the object at the open position
gGate = CreateDynamicObject(968, 828.07813, -1309.59290, 13.45290, 0.00000, 0.00000, 0.00000);
// move the gate to the closed position.
// speed is set to 0.01 so that the gate will close slowly.
// when using MoveObject with rotation only, the object will jump rather than move.
// to fix this, simply add a small movement to the Z position.
// this will be unnoticeable to players but will allow smooth movement.
MoveDynamicObject(gGate, 828.07813, -1309.59290, /*13.45290*/ 13.43290, 0.01, 0.00000, 90.00000, 0.00000);
// move the gate back to the open position.
MoveDynamicObject(gGate, 828.07813, -1309.59290, 13.45290, 0.01, 0.00000, 0.00000, 0.00000);