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
rankId unit
Parameters:
unit: Object
Returns: Number
Examples
Example 1
_myIdRank = rankId player;