IsActorTorchLit
Whether an actor holds a lit torch (or a lantern).
Syntax
Section titled “Syntax”IsActorTorchLit(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”boolean - true for a lit torch or lantern; false for an actor with none, for a dead one (a death puts it 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 · GetActorLight · the NPC actors group of the index
