IsObjectiveFailed - Quest

From the CreationKit Wiki
Revision as of 13:29, 25 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Quest Script

Obtains whether the specified quest objective is failed or not.

Syntax

bool Function IsObjectiveFailed(int aiObjective) native

Parameters

  • aiObjective: The objective to check.

Return Value

Whether the specified objective is failed or not.

Examples

<source lang="papyrus">

Is the second objective failed?

if HardQuest.IsObjectiveFailed(2)

 Debug.Trace("You failed the objective!")

endIf

See Also