unit setRank rank

Operand types

unit: Object
rank: String

Type of returned value

Description

Sets rank of given unit.
Possible values are:

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

This command appears to be identical to the setUnitRank command.

Used In

ArmA

Example

player setRank "COLONEL"
Search OFPEC COMREF