Difference between revisions of "ScriptCore3.menu2obj"

From Soldat Community Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
==Description==
 
==Description==
This converts a string into a number.
+
Gives the corresponding position of the weapon in [[Weapons List]] to the right position in the [[TMapObject.Style]]
  
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 16:10, 1 May 2018

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

Description

Gives the corresponding position of the weapon in Weapons List to the right position in the TMapObject.Style