rank unitName

Operand types

unitName: Object

Type of returned value

Description

Return the rank of the given unit.
Rank can be one of the following:

* "PRIVATE"
* "CORPORAL"
* "SERGEANT"
* "LIEUTENANT"
* "CAPTAIN"
* "MAJOR"
* "COLONEL"

Used In

ArmA

Example

_rank = rank _TankOne
Search OFPEC COMREF