rankId: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Unit Identity | |gr1= Unit Identity | ||
| Return the rank of the given unit for comparison. | | Return the rank of the given unit for comparison. | ||
Line 16: | Line 16: | ||
*'''4''' - Captain | *'''4''' - Captain | ||
*'''5''' - Major | *'''5''' - Major | ||
*'''6''' - Colonel | *'''6''' - Colonel | ||
| '''rankId''' unit | | '''rankId''' unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2 | |p2= | ||
|p3 | |p3= | ||
| [[Number]] | | [[Number]] | ||
|x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code> | |x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code> | ||
| [[rank]] | | [[rank]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:26, 18 January 2021
Description
- Description:
- Return the rank of the given unit for comparison.
Value may be :
- 0 - Private
- 1 - Corporal
- 2 - Sergeant
- 3 - Lieutenant
- 4 - Captain
- 5 - Major
- 6 - Colonel
- Groups:
- Unit Identity
Syntax
Examples
- Example 1:
_myIdRank = rankId player;
Additional Information
- See also:
- rank
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note