IsActorDead
Whether an actor is a corpse.
Syntax
Section titled “Syntax”IsActorDead(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if IsActorDead(id) then DestroyEntity(id) endSee also
Section titled “See also”GetActorHealth · OnActorDeath · the NPC actors group of the index
