WoW:API IsUnitOnQuest: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
*Returns whether the passed unit is on the passed quest. One can use any of the defined [[API TYPE UnitId|UnitId]] values so long as it refers to a unit in the party or raid. | *Returns whether the passed unit is on the passed quest. One can use any of the defined [[API TYPE UnitId|UnitId]] values so long as it refers to a unit in the party or raid. | ||
---- | |||
{{template:WoW API}} |
Revision as of 20:37, 30 December 2005
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 passed unit is on the passed quest. One can use any of the defined UnitId values so long as it refers to a unit in the party or raid.