MoveObject
#7

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);
I'm not very good at explaining things so I hope you can understand what I mean.
Reply


Messages In This Thread
MoveObject - by AlmirDelic - 05.08.2013, 23:33
Re: MoveObject - by AlmirDelic - 06.08.2013, 02:26
Re: MoveObject - by Amel_PAtomAXx - 06.08.2013, 02:56
Re: MoveObject - by AlmirDelic - 06.08.2013, 18:45
Re: MoveObject - by kamzaf - 06.08.2013, 18:47
Re: MoveObject - by AlmirDelic - 06.08.2013, 19:36
Re: MoveObject - by Psymetrix - 06.08.2013, 20:04
Re: MoveObject - by Jefff - 06.08.2013, 20:10
Re: MoveObject - by AlmirDelic - 06.08.2013, 20:22

Forum Jump:


Users browsing this thread: 3 Guest(s)