Callback OnObjectMoved is called when an object is moved after MoveObject (when it stops moving).
SetObjectPos does not work when used in this callback. To fix it, recreate the object.

int objectid The ID of the object that was moved.

Return Values:
This callback does not handle returns.
  • It is always called first in filterscripts.

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

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

Related Functions
The following functions may be useful, as they are related to this function in one way or another.