setUnitRank: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) (Fix description) |
||
Line 27: | Line 27: | ||
|descr= Sets rank of given unit. | |descr= Sets rank of given unit. | ||
Possible rank values, and the associated [[rating]] that is | Possible rank values, and the associated [[rating]] that is '''set''' (not added, the value replaces previous rating) with it: | ||
{{{!}} class{{=}}"wikitable" | |||
{{{!}} class{{=}}"wikitable" style{{=}}"text-align: center" | |||
! colspan{{=}}"2" {{!}} Ranks | |||
! PRIVATE | |||
! CORPORAL | |||
! SERGEANT | |||
! LIEUTENANT | |||
! CAPTAIN | |||
! MAJOR | |||
! COLONEL | |||
{{!}}- | {{!}}- | ||
{{!}} | ! rowspan{{=}}"3" {{!}} Ratings | ||
! | |||
{{Name|arma1|short}}<br> | |||
{{Name|arma2|short}}<br> | |||
{{Name|arma2oa|short}}<!--<br> | |||
{{Name|tkoh|short}}--> | |||
{{!}} 0 | |||
{{!}} 500 | |||
{{!}} 1500 | |||
{{!}} 2500 | |||
{{!}} 3500 | |||
{{!}} 5000 | |||
{{!}} 7500 | |||
{{!}}- | {{!}}- | ||
{{!}} | ! {{Name|arma3|short}} (ca 2015) | ||
{{!}} 0 | |||
{{!}} 50 | |||
{{!}} 150 | |||
{{!}} 250 | |||
{{!}} 350 | |||
{{!}} 500 | |||
{{!}} 750 | |||
{{!}}- | {{!}}- | ||
{{!}} | ! {{Name|arma3|short}} | ||
{{!}} 0 | |||
{{!}} 0 | |||
{{!}} 0 | |||
{{!}} 0 | |||
{{!}} 0 | |||
{{!}} 0 | |||
{{!}} 0 | |||
{{!}}} | {{!}}} | ||
{{Feature|arma3| Since {{arma3}} | {{Feature|arma3|Since {{GVI|arma3|1.68}} this command is {{Icon|globalArgument|32}} {{Icon|globalEffect|32}}}} | ||
|s1= unitName [[setUnitRank]] rank | |s1= unitName [[setUnitRank]] rank | ||
Line 54: | Line 78: | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] | ||
|p2= rank: [[String]] - | |p2= rank: [[String]] - see above. If a wrong string is provided, the command errors and reverts to using "PRIVATE" | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 60: | Line 84: | ||
|x1= <code>[[player]] [[setUnitRank]] "COLONEL";</code> | |x1= <code>[[player]] [[setUnitRank]] "COLONEL";</code> | ||
|seealso= [[ArmA: Rating Values|Rating Values]], [[rating]], [[addRating]], [[rank]], [[setRank]] | |seealso= [[ArmA: Armed Assault: Rating Values|Rating Values]], [[rating]], [[addRating]], [[rank]], [[setRank]] | ||
}} | }} | ||
Revision as of 04:09, 30 October 2021
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:OA0 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 - 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 ValuesratingaddRatingranksetRank
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Identity
- Scripting Commands: Local Effect