FANDOM


Determines if a unit exists

exists = UnitExists(unit);

Parameters Edit

Arguments Edit

unit
UnitId - the unit to query

Returns Edit

exists
Boolean value. true if the unit exists, false otherwise

Example Edit

if ( not UnitExists("target") ) then
  SendChatMessage("I have no target :(", "SAY" );
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.