rankId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return the rank of the given unit for comparison. |= Description
| Return the rank of the given unit for comparison.
 
Value may be :
*'''0''' - Soldier
*'''1''' - Corporal
*'''2''' - Sergeant
*'''3''' - Lieutenant
*'''4''' - Captain
*'''5''' - Major
*'''6''' - Colonel |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''rankId''' unit |= Syntax
| '''rankId''' unit |= Syntax


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


|p2= |= PARAMETER2  
|p2= |= PARAMETER2  
Line 21: Line 30:




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


____________________________________________________________________________________________
____________________________________________________________________________________________


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


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 06:10, 15 July 2009

Hover & click on the images for description

Description

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

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