Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
mNo edit summary
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{wowapi}}
{{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.
 
  +
----
  +
;''Arguments''
  +
  +
:(String unit)
  +
  +
:;unit : UnitId of the unit
  +
  +
----
  +
;''Returns''
  +
  +
:;vis : Number - 1 if client can see unit, nil if not
  +
  +
----
  +
;''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.
  +
  +
:This does not check for line-of-sight, only for game client visibility.

Revision as of 00:50, 6 November 2007

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


Arguments
(String unit)
unit
UnitId of the unit

Returns
vis
Number - 1 if client can see unit, nil if not

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.
This does not check for line-of-sight, only for game client visibility.