Preskoči na vsebino

StopObject

Description

Stop a moving object after MoveObject has been used.

NameDescription
objectidThe ID of the object to stop moving.

Returns

This function does not return any specific values.

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);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/stopobject", true) == 0)
{
StopObject(gAirportGate);
return 1;
}
return 0;
}