CrazyJack11266@legacy41532347 (talk | contribs) mNo edit summary |
Belleboom5887@legacy41527201 (talk | contribs) 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
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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.