rank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
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 03:15, 17 January 2021

Hover & click on the images for description

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

Syntax:
rank unitName
Parameters:
unitName: Object
Return Value:
String

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

Notes

Bottom Section