Determines if a unit exists

exists = UnitExists(unit);

Parameters Edit

Arguments Edit

UnitId - the unit to query

Returns Edit

Boolean value. true if the unit exists, false otherwise

Example Edit

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

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.