Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API IsUnitOnQuest

Last wiki revision 2022-07-26

Returns whether the passed unit is on the passed quest. IsUnitOnQuest(questIndex, unit)

  • Arguments
  • questIndex: - The index of the quest to check for
  • unit: : UnitId
  • Returns
  • bool

if IsUnitOnQuest(0, "player") then SendChatMessage("i am on my quest", "SAY", "Common", "General") end

  • Example

<1. General>Player: "i am on my quest";

  • Result
  • 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.

Source

https://warcraft.wiki.gg/wiki/API_IsUnitOnQuest · 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.