Mod:Creation Kit/SetObjectiveCompleted - Quest

Member of: Mod:Creation Kit/Quest Script

Sets whether the specified quest objective is completed or not.

Syntax
Function SetObjectiveCompleted(int aiObjective, bool abCompleted = true) native

Parameters

 * aiObjective: The objective to flag as completed or not.
 * abCompleted: Whether to flag this objective as completed.
 * Default: true

Return Value
None.

Examples
MyQuest.SetObjectiveCompleted(10) MyQuest.SetObjectiveCompleted(10, false)
 * Set the 10th objective to be completed
 * Set the 10th objective to be incomplete