setUnitRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|SETUNITRANK]]
[[Category:Scripting Commands ArmA|SETUNITRANK]]


<new command not populated>


<h2 style="color:#000066">'''''unit'' setUnitRank ''rank'''''</h2>


<h2 style="color:#000066">''''' setUnitRank '''''</h2>


'''Operand types:'''


'''Operand types:'''
'''unit:''' [[Object]]
 
'''rank:''' [[String]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Nothing]]


'''Compatibility:'''
'''Compatibility:'''
Version 2.33 required.


'''Description:'''
'''Description:'''


Sets rank of given unit. Possible values: PRIVATE, CORPORAL, SERGEANT, LIEUTENANT, CAPTAIN, MAJOR or COLONEL.


'''Example:'''
'''Example:'''
player '''setUnitRank''' "COLONEL"

Revision as of 17:30, 4 July 2006


unit setUnitRank rank


Operand types:

unit: Object

rank: String

Type of returned value:

Nothing

Compatibility:

Version 2.33 required.

Description:

Sets rank of given unit. Possible values: PRIVATE, CORPORAL, SERGEANT, LIEUTENANT, CAPTAIN, MAJOR or COLONEL.

Example:

player setUnitRank "COLONEL"