Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns true if the game client can see the unit.
visible = UnitIsVisible(unit)
- Arguments
- (String unit)
- unit
- UnitId of the unit
- Returns
- visible
- 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.