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/01/08 14:49] – Regallion | 4rpl:commands:getmissionobjectivestate [2023/06/25 16:57] – revised description removed confusing material regarding true/false Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | < |
+ | < | ||
====== GetMissionObjectiveState ====== | ====== GetMissionObjectiveState ====== | ||
Line 6: | 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 | + | |
- | 0 = " | + | States are: |
- | 1 = " | + | ? 0 |
- | 2 = " | + | : Objective not (yet) achieved |
- | 3 = " | + | ? 1 |
- | 4 = " | + | : Objective achieved |
- | 5 = " | + | ? -1 |
+ | : Objective failed | ||
+ | | ||
+ | |||
===== Examples ===== | ===== Examples ===== | ||
Line 20: | Line 25: | ||
GetMissionObjectiveState(5) -> | GetMissionObjectiveState(5) -> | ||
</ | </ | ||
+ | |||
+ | ==== See Also ==== | ||
+ | |||
+ | [[AcquireMissionObjective]] | ||
+ | |||
< | < | ||