Skip to main content

OnPlayerObjectMoved

คำอธิบาย​

This callback is called when a player object is moved after MovePlayerObject (when it stops moving).

NameDescription
playeridThe playerid the object is assigned to
objectidThe ID of the player object that was moved

ส่งคืน​

มันถูกเรียกในฟิลเตอร์สคริปต์ก่อนเสมอ

ตัวอย่าง​

public OnPlayerObjectMoved(playerid, objectid)
{
printf("Player object moved: objectid: %d playerid: %d", objectid, playerid);
return 1;
}

บันทึก​

หมายเหตุ

NPC สามารถเรียก Callback นี้ได้

ฟังก์ชั่นที่เกี่ยวข้องกัน​