setRank: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(setRank is not available for OFP:R.)
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETRANK]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|SETRANK]]
____________________________________________________________________________________________


| arma |= Game name


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


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


'''Operand types:'''
| unit '''setRank''' 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 setRank "COLONEL"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


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


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


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

Revision as of 23:27, 1 August 2006

-wrong parameter ("Arma") defined!-2.92
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 setRank rank
Parameters:
unit: Object
rank: String
Return Value:
Nothing

Examples

Example 1:
player setRank "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