rankId: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Unit Identity |GROUP1= | |gr1= Unit Identity |GROUP1= | ||
| Return the rank of the given unit for comparison. | | Return the rank of the given unit for comparison. | ||
Line 19: | Line 17: | ||
*'''5''' - Major | *'''5''' - Major | ||
*'''6''' - Colonel |DESCRIPTION= | *'''6''' - Colonel |DESCRIPTION= | ||
| '''rankId''' unit |SYNTAX= | | '''rankId''' unit |SYNTAX= | ||
Line 34: | Line 31: | ||
|x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code>|EXAMPLE1= | |x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code>|EXAMPLE1= | ||
| [[rank]] |SEEALSO= | | [[rank]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 02:21, 17 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