Background for Fallout 4
Member of the Quest script
voidfunctionSetObjectiveFailed(intaiObjective, boolabFailed=true)Native

Description

Wiki Description

Sets whether the specified quest objective is failed or not.

Documentation Comment

Sets the specified objective to failed or not


Caveats


Parameters

intaiObjective

CK Wiki Description

The objective to flag as failed or not.

boolabFailed=true

CK Wiki Description

Whether to flag this objective as failed.


Examples

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

Auto-Generated Example

int myInt__aiObjective
bool myBool__abFailed

myQuest__toCallFunctionOn.SetObjectiveFailed(myInt__aiObjective, myBool__abFailed)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.