setUnitRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETUNITRANK]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETUNITRANK]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETUNITRANK]]


| arma |= Game name


<h2 style="color:#000066">'''''unit'' setUnitRank ''rank'''''</h2>
|2.33|= Game version
____________________________________________________________________________________________


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


'''Operand types:'''
| unit '''setUnitRank''' rank |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''rank:''' [[String]]
|p2= rank: [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>player setUnitRank "COLONEL"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.33 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Sets rank of given unit.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETUNITRANK]]
Possible values: PRIVATE, CORPORAL, SERGEANT, LIEUTENANT, CAPTAIN, MAJOR or COLONEL.
[[Category:Scripting Commands OFP Elite |SETUNITRANK]]
 
[[Category:Scripting Commands ArmA|SETUNITRANK]]
 
'''Example:'''
 
player '''setUnitRank''' "COLONEL"

Revision as of 23:34, 1 August 2006

-wrong parameter ("Arma") defined!-2.33
Hover & click on the images for description

Description

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

Syntax

Syntax:
unit setUnitRank rank
Parameters:
unit: Object
rank: String
Return Value:
Nothing

Examples

Example 1:
player setUnitRank "COLONEL"

Additional Information

See also:
See also needed

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

Notes

Bottom Section