IsActorTorchLit
Whether an actor holds a lit torch.
Syntax
Section titled “Syntax”IsActorTorchLit(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”boolean - false for an actor with no lit torch, for a dead one (a death puts the torch out) and for anything that is no person actor, an animal included
Example
Section titled “Example”if not IsActorTorchLit(id) then SetActorTorch(id, true) endSee also
Section titled “See also”SetActorTorch · the NPC actors group of the index
