rank: 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= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 9: | Line 8: | ||
|gr1= Unit Identity |GROUP1= | |gr1= Unit Identity |GROUP1= | ||
| Returns the rank of the given unit. Rank can be one of the following: | | Returns the rank of the given unit. Rank can be one of the following: | ||
Line 19: | Line 17: | ||
* <tt>"MAJOR"</tt> | * <tt>"MAJOR"</tt> | ||
* <tt>"COLONEL"</tt> |DESCRIPTION= | * <tt>"COLONEL"</tt> |DESCRIPTION= | ||
| '''rank''' unitName |SYNTAX= | | '''rank''' unitName |SYNTAX= | ||
Line 26: | Line 23: | ||
| [[String]] |RETURNVALUE= | | [[String]] |RETURNVALUE= | ||
|x1= <code>_rank = [[rank]] player;</code> |EXAMPLE1= | |x1= <code>_rank = [[rank]] player;</code> |EXAMPLE1= | ||
| [[rating]], [[addRating]], [[setUnitRank]], [[ArmA: Rating Values|Rating Values]] |SEEALSO= | | [[rating]], [[addRating]], [[setUnitRank]], [[ArmA: Rating Values|Rating Values]] |SEEALSO= |
Revision as of 02:15, 17 January 2021
Description
- Description:
- Returns the rank of the given unit. Rank can be one of the following:
- "PRIVATE"
- "CORPORAL"
- "SERGEANT"
- "LIEUTENANT"
- "CAPTAIN"
- "MAJOR"
- "COLONEL"
- Groups:
- Unit Identity
Syntax
Examples
- Example 1:
_rank = rank player;
Additional Information
- See also:
- ratingaddRatingsetUnitRankRating Values
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