Mod:Creation Kit/SetObjectiveFailed - Quest

Member of: Mod:Creation Kit/Quest Script

Sets whether the specified quest objective is failed or not.

Syntax
Function SetObjectiveFailed(int aiObjective, bool abFailed = true) native

Parameters

 * aiObjective: The objective to flag as failed or not.
 * abFailed: Whether to flag this objective as failed.
 * Default: true

Return Value
None.

Examples
MyQuest.SetObjectiveFailed(10) MyQuest.SetObjectiveFailed(10, false)
 * Set the 10th objective to be failed
 * Set the 10th objective to be un-failed