GetActorLight
Which light an actor holds - a torch or a lantern.
Syntax
Section titled “Syntax”GetActorLight(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”string or nil - "torch", "lantern" or "lantern_fancy"; nil for none, a dead actor and anything that is no person actor
Example
Section titled “Example”if GetActorLight(guard) == "torch" then SetActorTorch(guard, true, "lantern") endSee also
Section titled “See also”SetActorTorch · IsActorTorchLit · the NPC actors group of the index
