انتقل إلى المحتوى الرئيسي

OnObjectMoved

Description

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

NameDescription
objectidThe ID of the object that was moved

Returns

It is always called first in filterscripts.

Examples

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

Notes

تلميح

SetObjectPos does not work when used in this callback. To fix it, recreate the object.

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

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