Difference between revisions of "ScriptCore3.obj2weap"
(→Description) |
(→Description) |
||
Line 4: | Line 4: | ||
==Description== | ==Description== | ||
− | Translates the position of the weapon in the Style property of a Map Object - lying weapon([[TMapObject.Style]]) to the corresponding position of the WType property of a Weapon Object - weapon in player's hands([[TWeapon.WType]]). | + | Translates the position of the weapon in the Style property of a Map Object - lying weapon ([[TMapObject.Style]]) to the corresponding position of the WType property of a Weapon Object - weapon in player's hands ([[TWeapon.WType]]). |
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 16:45, 1 May 2018
function obj2weap(Style: Byte): Byte Style: Position(Style) of the weapon in the TMapObject.Style Result: Position(Style) of the weapon in the TWeapon.WType
Description
Translates the position of the weapon in the Style property of a Map Object - lying weapon (TMapObject.Style) to the corresponding position of the WType property of a Weapon Object - weapon in player's hands (TWeapon.WType).