Returns whether a unit is on one of the quests in the player's quest log


See also Unit functions, Quest functions.

Signature:

state = IsUnitOnQuest(index, "unit") or IsUnitOnQuest(index, "name")

Arguments:

  • index - Index of a quest in the player's quest log (between 1 and GetNumQuestLogEntries()) (number)
  • unit - A unit to query (string, unitID)
  • name - The name of a unit to query; only valid for player, pet, and party/raid members (string)

Returns:

  • state - 1 if the unit is on the quest; otherwise nil (1nil)