This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
4rpl:commands:getmissionobjectivestate [2021/04/27 21:19] – Karsten75 | 4rpl:commands:getmissionobjectivestate [2023/06/25 16:57] – revised description removed confusing material regarding true/false Karsten75 | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Description ===== | ===== Description ===== | ||
- | 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. | + | Gets state (1, -1 or 0) of a mission objective. Mission objectives are defined in the game menu of a mission. |
- | When the mission objective is failed, -1 is returned | + | Mission objectives |
- | Mission objectives | + | |
+ | States are: | ||
+ | ? 0 | ||
+ | : Objective not (yet) achieved | ||
+ | ? 1 | ||
+ | : Objective achieved | ||
+ | ? -1 | ||
+ | : Objective failed | ||
+ | | ||
- | See [[AcquireMissionObjective]] for the enumeration of mission objectives. | ||
===== Examples ===== | ===== Examples ===== | ||
Line 19: | Line 25: | ||
GetMissionObjectiveState(5) -> | GetMissionObjectiveState(5) -> | ||
</ | </ | ||
+ | |||
+ | ==== See Also ==== | ||
+ | |||
+ | [[AcquireMissionObjective]] | ||
+ | |||
< | < | ||