MoveObject
From SA-MP
[edit]
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)
| objectid | The objectid you want to move. |
| Float:X | The new X coordinate. |
| Float:Y | The new Y coordinate. |
| Float:Z | The new Z coordinate. |
| Float:Speed | The 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 );
[edit]
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- CreateObject: Creates an object.
- StopObject: Stops a moving object.
- SetObjectPos: Immediately sets a new position without animation.
