warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for 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.