Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitDistanceSquared

Last wiki revision 2023-01-28

Returns the squared distance to a unit in your group. distanceSquared, checkedDistance = UnitDistanceSquared(unit)

  • unit: : UnitId - The unit id of a player in your group.
  • distanceSquared: - the squared distance to that unit
  • checkedDistance: - true if the distance result is valid, false otherwise (eg. unit not found or not in your group)

Source

https://warcraft.wiki.gg/wiki/API_UnitDistanceSquared · 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.