முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

DestroyActor

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Destroy an actor which was created with CreateActor.

NameDescription
actoridThe ID of the actor to destroy. Returned by CreateActor.

Returns​

true - The function executed successfully.

false - The function failed to execute. The actor with the ID specified does not exist.

Examples​

new MyActor;

public OnFilterScriptInit()
{
MyActor = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
return 1;
}

public OnFilterScriptExit()
{
DestroyActor(MyActor);
return 1;
}