rankId: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{uc:{{PAGENAME}}}}" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2oa | ||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Unit Identity | |gr1= Unit Identity | ||
| Return the rank of the given unit for comparison. | |descr= Return the rank of the given unit for comparison. | ||
Value may be : | Value may be: | ||
*'''0''' - Private | * '''0''' - Private | ||
*'''1''' - Corporal | * '''1''' - Corporal | ||
*'''2''' - Sergeant | * '''2''' - Sergeant | ||
*'''3''' - Lieutenant | * '''3''' - Lieutenant | ||
*'''4''' - Captain | * '''4''' - Captain | ||
*'''5''' - Major | * '''5''' - Major | ||
*'''6''' - Colonel | * '''6''' - Colonel | ||
| | |s1= [[rankId]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Number]] | |r1= [[Number]] | ||
|x1= <code>_myIdRank | |x1= <code>_myIdRank = rankId player;</code> | ||
|seealso= [[rank]] | |seealso= [[rank]] | ||
}} | }} | ||
Revision as of 15:04, 9 June 2021
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
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