getOriginalWeaponProperty
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function gets the original weapon property of the specified weapons specified weapon type.
Syntax
int getOriginalWeaponProperty ( int weaponID/string weaponName, string weaponSkill, string property )Required Arguments
- weaponID/string weaponName: MISSING_PARAM_DESC
- weaponSkill: MISSING_PARAM_DESC
- property: MISSING_PARAM_DESC
Returns
- int: value
On success:
Code Examples
shared
This example gets the default weapon range of the M4 at poor skill level
local range = getOriginalWeaponProperty(31, "poor", "weapon_range")outputChatBox("Default M4 range at poor is: "..tostring(range))