Skip to content

GetActorLight

Which light an actor holds - a torch or a lantern.

GetActorLight(id)
Parameter Type
id number the actor

string or nil - "torch", "lantern" or "lantern_fancy"; nil for none, a dead actor and anything that is no person actor

if GetActorLight(guard) == "torch" then SetActorTorch(guard, true, "lantern") end

SetActorTorch · IsActorTorchLit · the NPC actors group of the index