WoW:API UnitIsVisible: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
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 : Boolean - client can see unit
== Example ==
UnitIsVisible("Thrall");
====Result====
false
:(You aren't even in Orgrimmar :P)
==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__
;''Details''
{{WoW API}}
: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.

Revision as of 23:12, 18 July 2006

WoW API < UnitIsVisible

Indicates whether the game client (rather than the player) can see unit.


Arguments
(String unit)
unit
UnitId of the unit

Returns
vis
Boolean - client can see unit

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.