Warning: file_put_contents(/ff_86322220437cb19a07a9459152e16ee7d28508d7efe6d7f0.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setUnitRank - OFPEC Scripting Command Reference | OFPEC The Editing Center

unit setUnitRank 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 setRank command.

Used In

ArmA

Example

player setUnitRank "COLONEL"

Advertisement