This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:getmissionobjectivestate [2023/06/23 02:46] – Hold objective specification. Vertu | 4rpl:commands:getmissionobjectivestate [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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. | + | 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 = " |
| + | 1 = " | ||
| + | 2 = " | ||
| + | 3 = " | ||
| + | 4 = " | ||
| + | 5 = " | ||
| - | :WARNING: In this syntax: <color # | + | States are: |
| - | This is likely due to the shorthand <color # | + | ? 0 |
| + | | ||
| + | ? 1 | ||
| + | : Objective achieved | ||
| + | ? -1 | ||
| + | : Objective failed | ||
| + | | ||
| - | |||
| - | See [[AcquireMissionObjective]] for the enumeration of mission objectives. | ||
| ===== Examples ===== | ===== Examples ===== | ||
| Line 22: | Line 31: | ||
| GetMissionObjectiveState(5) -> | GetMissionObjectiveState(5) -> | ||
| </ | </ | ||
| + | |||
| + | ==== See Also ==== | ||
| + | |||
| + | [[AcquireMissionObjective]] | ||
| + | |||
| < | < | ||