Description
Wiki Description
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".
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
- Quest
- Quest.IsObjectiveFailed(...)
