setUnitRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
'''Description:'''
'''Description:'''


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


'''Example:'''
'''Example:'''


player '''setUnitRank''' "COLONEL"
player '''setUnitRank''' "COLONEL"

Revision as of 21: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"