Difference between revisions of "ScriptCore3.obj2menu"

From Soldat Community Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
==Description==
 
==Description==
This converts a string into a number.
+
Translates the position of the weapon in the Style property of a Map Object([[TMapObject.Style]]) to the corresponding position in the Weapon Menu([[Weapons List]]).
  
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 16:38, 1 May 2018

function obj2menu(Style: Byte): Byte
 Style: Position(Style) of the weapon in the TMapObject.Style
 Result: Position(Style) of the weapon in the Weapons List

Description

Translates the position of the weapon in the Style property of a Map Object(TMapObject.Style) to the corresponding position in the Weapon Menu(Weapons List).