IsObjectMoving
Description:
Function IsObjectMoving checks if the given objectid is moving.
Function IsObjectMoving was added in 0.3d and will not work in earlier versions! |
Parameters:
(objectid)
int | objectid | The objectid you want to check if is moving. |
Return Values:
- 1 if the object is moving
- 0 if not.
Examples:
if(IsObjectMoving(objectid)) StopObject(objectid);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- MoveObject: Move an object.
- StopObject: Stop an object from moving.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnObjectMoved: Called when an object stops moving.