跳至主要内容

IsObjectMoving

Description

Checks if the given objectid is moving.

NameDescription
objectidThe 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;
}