Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitIsVisible

Last wiki revision 2023-08-13

Returns true if the game client can see the unit. visible = UnitIsVisible(unit)

  • Arguments
  • (String unit)
  • unit:UnitId of the unit
  • Returns
  • visible: - 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.

Source

https://warcraft.wiki.gg/wiki/API_UnitIsVisible · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.