Skip to content

IsActorVisibleTo

Whether a player sees an actor or an animal.

IsActorVisibleTo(id, viewer)
Parameter Type
id number the actor or animal
viewer number the player looking

boolean - the player’s own rule (SetActorInvisibleFor) when there is one, else not IsActorInvisible(id); false when either does not exist

if IsActorVisibleTo(informant, pid) then SendClientMessage(pid, COLOR_GOLD, "Someone whispers your name.") end

SetActorInvisible · SetActorInvisibleFor · IsActorInvisible · the NPC actors group of the index