IsActorVisibleTo
Whether a player sees an actor or an animal.
Syntax
Section titled “Syntax”IsActorVisibleTo(id, viewer)| Parameter | Type | |
|---|---|---|
id |
number | the actor or animal |
viewer |
number | the player looking |
Returns
Section titled “Returns”boolean - the player’s own rule (SetActorInvisibleFor) when there is one, else not IsActorInvisible(id); false when either does not exist
Example
Section titled “Example”if IsActorVisibleTo(informant, pid) then SendClientMessage(pid, COLOR_GOLD, "Someone whispers your name.") endSee also
Section titled “See also”SetActorInvisible · SetActorInvisibleFor · IsActorInvisible · the NPC actors group of the index
