Scripting/Squirrel/Functions/ResetWeaponDataValue

From Vice City Multiplayer
Revision as of 11:40, 20 February 2015 by Sseebbyy (talk | contribs) (Created page with "This function will reset the data value of a weapon. (range, damage, etc) == Syntax == <pre>ResetWeaponDataValue( weaponID, fieldID )</pre> == Arguments == * ''integer'' '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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 )

Related Functions