WoW:API UnitIsVisible: Difference between revisions

m
Move page script moved page API UnitIsVisible to WoW:API UnitIsVisible without leaving a redirect
No edit summary
m (Move page script moved page API UnitIsVisible to WoW:API UnitIsVisible without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}}
Indicates whether the game client (rather than the player) can see unit.
Indicates whether the game client (rather than the player) can see unit.
----
;''Arguments''


:(String unit)


vis = UnitIsVisible("unit")
:;unit : UnitId of the unit


== Parameters ==
----
=== Arguments ===
:("unit")
 
:;unit: String - name of unit
 
=== Returns ===
;''Returns''
;''Returns''
:vis


:;vis : Boolean - client can see unit
:;vis : Number - 1 if client can see unit, nil if not
== Example ==
UnitIsVisible("Thrall");


====Result====
----
  false
;''Details''
:The game client can see objects (including units) that the server has told it to load (and has not yet told it to unload). The server provides objects in a 100-yard radius, but seems to load them in batches.


:(You aren't even in Orgrimmar :P)
:This does not check for line-of-sight, only for game client visibility.
 
==Details==
 
The game client can see objects (including units) that the server has told it to load (and has not yet told it to unload).  The server provides objects in a 100-yard radius, but seems to load them in batches.
 
----
__NOTOC__
{{WoW API}}
Anonymous user