OnObjectMoved
From SA-MP Wiki
OnObjectMoved
This callback is called when an object is moved after MoveObject (when it stops moving).
(objectid)
| objectid | The ID of the object that was moved |
This function does not return a specific value, it's best to simply ignore it.
Important note: SetObjectPos does not work when used in this callback. To fix it, delete and recreate the object.
public OnObjectMoved(objectid) { printf("Object %d was moved!",objectid); return 1; }
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- MoveObject: Moves an object
- StopObject: Stops an object from moving
- CreateObject: Creates a object
- DestroyObject: Destroys an object
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnPlayerObjectMoved: Called when a player object stops moving
