MoveObject

From SA-MP

Jump to: navigation, search


MoveObject

This function can be used to move an object in an animated (slow) way. If you let the object move slowly you can move the players on/under/in the object with it.


(objectid, Float:X, Float:Y, Float:Z, Float:Speed)
objectidThe objectid you want to move.
Float:XThe new X coordinate.
Float:YThe new Y coordinate.
Float:ZThe new Z coordinate.
Float:SpeedThe speed of which the object will be moved with.


This function does not return a specific value, it's best to simply ignore it.


MoveObject( objectid, 2001.195679, 1547.113892, 14.151412, 2.00 );

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

  • SetObjectPos: Immediately sets a new position without animation.
Personal tools