rankId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


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


| Return the rank of the given unit for comparison.
| Return the rank of the given unit for comparison.
Line 16: Line 16:
*'''4''' - Captain
*'''4''' - Captain
*'''5''' - Major
*'''5''' - Major
*'''6''' - Colonel |DESCRIPTION=
*'''6''' - Colonel


| '''rankId''' unit |SYNTAX=
| '''rankId''' unit


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]


|p2= |PARAMETER2=  
|p2=


|p3= |PARAMETER3=  
|p3=


| [[Number]] |RETURNVALUE=
| [[Number]]




|x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code>|EXAMPLE1=
|x1= <code>_myIdRank <nowiki>=</nowiki> rankId player;</code>




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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 01:26, 18 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