Skip to main content

ClearActorAnimations

warning

ฟังก์ชั่นนี้ถูกเพิ่มใน SA-MP 0.3.7 และจะไม่ทำงานในเวอร์ชั่นก่อนหน้านี้!

คำอธิบาย

Clear any animations applied to an actor.

NameDescription
actoridThe ID of the actor (returned by CreateActor) to clear the animations for.

ส่งคืน

1: The function executed successfully.

0: The function failed to execute. The actor specified does not exist.

ตัวอย่าง

new MyActor;

public OnGameModeInit()
{
MyActor = CreateActor(...);
}

// Somewhere else
ApplyActorAnimation(MyActor, ...);

// Somewhere else
ClearActorAnimations(MyActor);

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