setUnitRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
 
(4 intermediate revisions by the same user not shown)
Line 21: Line 21:
|arg= global
|arg= global


|eff= local
|eff= global


|gr1= Unit Identity
|gr1= Unit Identity
Line 29: Line 29:
Possible rank values, and the associated [[rating]] that is '''set''' (not added, the value replaces previous rating) with it:
Possible rank values, and the associated [[rating]] that is '''set''' (not added, the value replaces previous rating) with it:


{{{!}} class{{=}}"wikitable" style{{=}}"text-align: center"
{{{!}} class="wikitable" style="text-align: center"
! colspan{{=}}"2" {{!}} Ranks
! colspan="2" {{!}} Ranks
! PRIVATE
! PRIVATE
! CORPORAL
! CORPORAL
Line 39: Line 39:
! COLONEL
! COLONEL
{{!}}-
{{!}}-
! rowspan{{=}}"3" {{!}} Ratings
! rowspan="3" {{!}} Ratings
!
!
{{Name|arma1|short}}<br>
{{Name|arma1|short}}<br>
Line 72: Line 72:
{{!}}}
{{!}}}


{{Feature|arma3|Since {{GVI|arma3|1.68}} this command is {{Icon|globalArgument|32}} {{Icon|globalEffect|32}}}}
{{Feature|arma3|Before {{arma3}} v1.68 and in previous titles, this command was {{Icon|globalArgument|32}} {{Icon|localEffect|32}}.}}


|s1= unitName [[setUnitRank]] rank
|s1= unitName [[setUnitRank]] rank
Line 82: Line 82:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[player]] [[setUnitRank]] "COLONEL";</code>
|x1= <sqf>player setUnitRank "COLONEL";</sqf>


|seealso= [[ArmA: Armed Assault: Rating Values|Rating Values]] [[rating]] [[addRating]] [[rank]], [[setRank]]
|seealso= [[ArmA: Armed Assault: Rating Values|Rating Values]] [[rating]] [[addRating]] [[rank]] [[setRank]]
}}
}}

Latest revision as of 18:03, 29 April 2023

Hover & click on the images for description

Description

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
Arma 3 (ca 2015) 0 50 150 250 350 500 750
Arma 3 0 0 0 0 0 0 0
Arma 3
Before Arma 3 v1.68 and in previous titles, this command was GAGlobal LELocal.
Groups:
Unit Identity

Syntax

Syntax:
unitName setUnitRank rank
Parameters:
unitName: Object
rank: String - see above. If a wrong string is provided, the command errors and reverts to using "PRIVATE"
Return Value:
Nothing

Examples

Example 1:
player setUnitRank "COLONEL";

Additional Information

See also:
Rating Values rating addRating rank setRank

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