Difference between revisions of "SetObjectiveFailed - Quest"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
(Function doesn't work if called from "complete quest" or "fail quest" stage fragment.)
 
Line 4: Line 4:


Sets whether the specified quest objective is failed or not.
Sets whether the specified quest objective is failed or not.
'''NOTE:''' This function does not work if called from a stage fragment script that is marked as "Complete Quest" or "Fail Quest".


== Syntax ==
== Syntax ==

Latest revision as of 00:09, 2 December 2021

Member of: Quest Script

Sets whether the specified quest objective is failed or not.

NOTE: This function does not work if called from a stage fragment script that is marked as "Complete Quest" or "Fail Quest".

Syntax[edit | edit source]

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

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set the 10th objective to be failed
MyQuest.SetObjectiveFailed(10)


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

See Also[edit | edit source]