Fandom

WoWWiki

API IsUnitOnQuest

104,831pages on
this wiki
Add New Page
Talk1 Share
WoW API < IsUnitOnQuest

Returns whether the passed unit is on the passed quest.

IsUnitOnQuest(questIndex, "unit")


Arguments
(questIndex, "unit")
questIndex 
Integer - The index of the quest to check for
unit 
String - The UnitId to select as a target.

Returns
bool

Example
   if IsUnitOnQuest(0, "player")  then
       SendChatMessage("i am on my quest", "SAY", "Common", "General")
   end
Result
   <1. General>Player: "i am on my quest";

Description
  • Returns whether the specified unit is on the specified quest. One can use any of the defined UnitId values so long as it refers to a unit in the party or raid.

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.