rankId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 7: Line 6:


|gr1= Unit Identity |GROUP1=
|gr1= Unit Identity |GROUP1=
____________________________________________________________________________________________


| Return the rank of the given unit for comparison.
| Return the rank of the given unit for comparison.
Line 19: Line 17:
*'''5''' - Major
*'''5''' - Major
*'''6''' - Colonel |DESCRIPTION=
*'''6''' - Colonel |DESCRIPTION=
____________________________________________________________________________________________


| '''rankId''' unit |SYNTAX=
| '''rankId''' unit |SYNTAX=
Line 34: Line 31:
|x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code>|EXAMPLE1=  
|x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[rank]] |SEEALSO=  
| [[rank]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 03:21, 17 January 2021

Hover & click on the images for description

Description

Description:
Return the rank of the given unit for comparison. Value may be :
  • 0 - Private
  • 1 - Corporal
  • 2 - Sergeant
  • 3 - Lieutenant
  • 4 - Captain
  • 5 - Major
  • 6 - Colonel
Groups:
Unit Identity

Syntax

Syntax:
rankId unit
Parameters:
unit: Object
Return Value:
Number

Examples

Example 1:
_myIdRank = rankId player;

Additional Information

See also:
rank

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