WoW:API UnitIsVisible: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{API/Uncategorized}}
Indicates whether the game client (rather than the player) can see unit.


Also, some functions return different values if the target is close enough to be 'visible' to your client (not necessarily in line of sight), as can be determined with UnitIsVisible("unit"), versus further away.
 
vis = UnitIsVisible("unit")
 
== Parameters ==
=== Arguments ===
:("unit")
 
:;unit: String - name of unit
 
=== Returns ===
;''Returns''
:vis
 
:;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__
{{WoW API}}

Revision as of 22:10, 17 April 2006

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


vis = UnitIsVisible("unit")

Parameters

Arguments

("unit")
unit
String - name of unit

Returns

Returns
vis
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.


Template:WoW API