Lore archive · Warcraft Wiki, 2023 dump
API UnitExists
Last wiki revision 2023-08-13
Returns true if the unit exists. exists = UnitExists(unit)
- unit: : UnitId
- exists: - true if the unit exists and is in the current zone, or false if not
The snippet below prints a message describing what the player is targeting. if UnitExists("target") then print("You're targeting a " .. UnitName("target")) else print("You have no target") end
Source
https://warcraft.wiki.gg/wiki/API_UnitExists · 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.