OnObjectMoved

From SA-MP Wiki

Jump to: navigation, search


This callback is called when an object is moved after MoveObject (when it stops moving).


Parameters:
(objectid)
objectidThe ID of the object that was moved


ReturnsThis function doesn't return a specific value


Image:32px-Ambox_warning_orange.png Note: SetObjectPos does not work when used in this callback. To fix it, delete and re-create the object.


public OnObjectMoved(objectid)
{
    printf("Object %d finished moving.",objectid);
    return 1;
}

Related Functions

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


Related Callbacks

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

Personal tools
In other languages