Arma 3 Scripting

setUnitRank

  • Global argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Sets rank of given unit.

Possible rank values, and the associated rating that is set (not added, the value replaces previous rating) with it:

Ranks PRIVATE CORPORAL SERGEANT LIEUTENANT CAPTAIN MAJOR COLONEL
Ratings ArmA
Arma 2
Arma 2:OA
TKOH
0 500 1500 2500 3500 5000 7500
Ratings Arma 3 (ca 2015) 0 50 150 250 350 500 750
Ratings Arma 3 0 0 0 0 0 0 0

Note

Arma 3: Before Arma 3 v1.68 and in previous titles, this command was Global argument Local effect.

Syntax

unitName setUnitRank rank

Parameters:

Returns: Nothing

Examples

Example 1

player setUnitRank "COLONEL";

See also

ArmA: Armed Assault: Rating Values · rating · addRating · rank · setRank