Scripting/Squirrel/Functions/ResetWeaponDataValue: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will reset the data value of a weapon. (range, damage, etc) == Syntax == <pre>ResetWeaponDataValue( weaponID, fieldID )</pre> == Arguments == * ''integer'' '...") |
No edit summary |
||
Line 19: | Line 19: | ||
{{Scripting/Squirrel/Functions/Weapon Functions}} | {{Scripting/Squirrel/Functions/Weapon Functions}} | ||
[[Category:Scripting/Squirrel/Functions/Weapon_Functions]] |
Latest revision as of 22:06, 30 January 2017
This function will reset the data value of a weapon. (range, damage, etc)
Syntax
ResetWeaponDataValue( weaponID, fieldID )
Arguments
- integer weaponID - model ID of weapon
- integer fieldID - field ID of data you want to reset ( WeaponDataValue )
Example
The following example will return the original firing range of Stubby Shotgun.
ResetWeaponDataValue( 21, 2 )