This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:getmissionobjectivestate [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:getmissionobjectivestate [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | < |
+ | < | ||
====== GetMissionObjectiveState ====== | ====== GetMissionObjectiveState ====== | ||
Line 6: | Line 7: | ||
===== Description ===== | ===== Description ===== | ||
- | Gets state (1 or 0) of a mission objective. Mission objectives are defined in the game menu of a mission. | + | 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 are referenced by a number, 0-5.\\ |
- | Mission objectives are referenced by a number, 0-5. | + | |
0 = " | 0 = " | ||
1 = " | 1 = " | ||
Line 15: | Line 15: | ||
4 = " | 4 = " | ||
5 = " | 5 = " | ||
+ | |||
+ | States are: | ||
+ | ? 0 | ||
+ | : Objective not (yet) achieved | ||
+ | ? 1 | ||
+ | : Objective achieved | ||
+ | ? -1 | ||
+ | : Objective failed | ||
+ | | ||
+ | |||
+ | |||
===== Examples ===== | ===== Examples ===== | ||
Line 20: | Line 31: | ||
GetMissionObjectiveState(5) -> | GetMissionObjectiveState(5) -> | ||
</ | </ | ||
+ | |||
+ | ==== See Also ==== | ||
+ | |||
+ | [[AcquireMissionObjective]] | ||
+ | |||
< | < | ||