SetObjectiveFailed - Quest
Jump to navigation
Jump to search
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
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
; Set the 10th objective to be failed
MyQuest.SetObjectiveFailed(10)
; Set the 10th objective to be un-failed
MyQuest.SetObjectiveFailed(10, false)