This is an old revision of the document!
GetMissionObjectiveState(<-objectiveNumber) ->state
Gets state (1, -1 or 0) of a mission objective. Mission objectives are defined in the game menu of a mission. When criteria is met, the objective is set to 1.
When the mission objective is failed, -1 is returned
Mission objectives are referenced by a number, 0-5.
In this syntax: if(GetMissionObjectiveState(3)), -1 and 1 are treated the same (as true). You must instead write eq(1). if(GetMissionObjectiveState(3) eq(1))
This is likely due to the shorthand if(GetMissionObjectiveState(3)) being treated as a neq0 format.
See AcquireMissionObjective for the enumeration of mission objectives.
GetMissionObjectiveState(5) ->customObjState
⇐ Index