rankId

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

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

Syntax

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

Examples

Example 1:
_myIdRank = rankId player;

Additional Information

Multiplayer:
-
See also:
rank

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section