MovePlayerObject

From SA-MP Wiki

Jump to: navigation, search

MovePlayerObject


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.


Parameters:
(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed)
playeridThe player you associated this object to.
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.


MovePlayerObject( playerid, objectid, 2001.195679, 1547.113892, 10 );

Related Functions

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


Personal tools