rankId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
Line 50: Line 50:
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 13:01, 25 March 2013

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:
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