DestroyActor
From SA-MP Wiki
Description:
Destroy an actor which was created with CreateActor.
(actorid)
actorid | The ID of the actor to destroy. Returned by CreateActor. |
Return Values:
- 1: The function was executed successfully.
- 0: The function failed to execute. The actor with the ID specified does not exist.
new MyActor; public OnFilterScriptInit() { MyActor = CreateActor(...); return 1; } public OnFilterScriptExit() { DestroyActor(MyActor); return 1; }
[edit]
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- CreateActor: Create an actor (static NPC).