FailPlayerQuest
Fails a quest for a player.
The HUD announces it unless silent; the quest moves to the journal’s done quests.
Syntax
Section titled “Syntax”FailPlayerQuest(pid, id [, silent])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number|string | the quest’s id or key |
silent |
boolean | true = no HUD banner (optional) |
Returns
Section titled “Returns”boolean, string - accepted; the reason when not
Example
Section titled “Example”function OnPlayerDeath(pid) if GetPlayerQuest(pid, ESCORT) then FailPlayerQuest(pid, ESCORT) endendSee also
Section titled “See also”CompletePlayerQuest · RemovePlayerQuest · the Quests group of the index
