note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
IsObjectMoving
Description
Checks if the given objectid is moving.
Name | Description |
---|---|
objectid | The objectid you want to check if is moving. |
Returns
true if the object is moving, false if not.
Examples
new gAirportGate;
public OnGameModeInit()
{
gAirportGate = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
MoveObject(gAirportGate, 0.0, 0.0, 15.0, 1.00);
if (IsObjectMoving(gAirportGate))
{
StopObject(gAirportGate);
}
return 1;
}
Related Functions
- MoveObject: Move an object.
- StopObject: Stop an object from moving.
Related Callbacks
- OnObjectMoved: Called when an object stops moving.