DestroyActor

DestroyActor

Description:
Function DestroyActor destroy an actor which was created with CreateActor.
Function DestroyActor was added in 0.3.7 and will not work in earlier versions!


Parameters:
(actorid)
int 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.


Examples:
new MyActor;
 
public OnFilterScriptInit()
{
    MyActor = CreateActor(...);
    return 1;
}
 
public OnFilterScriptExit()
{
    DestroyActor(MyActor);
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.