Difference between revisions of "ScriptCore3.weap2menu"

From Soldat Community Wiki
Jump to: navigation, search
(Description)
Line 4: Line 4:
  
 
==Description==
 
==Description==
Translates the position of the weapon in the WType property of a Weapon Object([[TWeapon.WType]]) to the corresponding position in the Weapon Menu([[Weapons List]]).
+
Translates the position of the weapon in the WType property of a Weapon Object ([[TWeapon.WType]]) to the corresponding position in the Weapon Menu ([[Weapons List]]).
  
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 17:45, 1 May 2018

function weap2menu(Style: Byte): Byte
 Style: Position(Style) of the weapon in the TWeapon.WType
 Result: Position(Style) of the weapon in the Weapons List

Description

Translates the position of the weapon in the WType property of a Weapon Object (TWeapon.WType) to the corresponding position in the Weapon Menu (Weapons List).