StopObject

From SA-MP Wiki

Revision as of 00:54, 4 September 2009; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

StopObject


Use this function to stop a moving object, for example after using MoveObject. To move a object in one time, use SetObjectPos.


Parameters:
(objectid)
objectidThe objectid of the object you want to stop moving.


This function does not return a specific value, it's best to simply ignore it.


public OnGameModeInit()
{
    new obj;
    obj = CreateObject(...);
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/stopobject", true) == 0)
    {
        StopObject(obj);
        return 1;
    }
    return 0;
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.



Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.