ResetWeaponFiringRate: Difference between revisions
Jump to navigation
Jump to search
m (Added small example) |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
Line 17: | Line 17: | ||
resetWeaponFiringRate (weapon) | resetWeaponFiringRate (weapon) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{Client weapon creation functions}} | {{Client weapon creation functions}} |
Latest revision as of 17:06, 7 November 2024
This function resets the firing rate of a custom weapon to the default one.
Syntax
bool resetWeaponFiringRate ( weapon theWeapon )
OOP Syntax Help! I don't understand this!
- Method: weapon:resetFiringRate(...)
Required Arguments
- theWeapon: the weapon to reset the firing rate of.
Returns
Returns true on success, false otherwise.
Example
local weapon = createWeapon ("mp5",0,0,10) resetWeaponFiringRate (weapon)
See also
- createWeapon
- fireWeapon
- getWeaponAmmo
- getWeaponClipAmmo
- getWeaponFiringRate
- getWeaponFlags
- getWeaponOwner
- getWeaponProperty
- getWeaponState
- getWeaponTarget
- resetWeaponFiringRate
- setWeaponAmmo
- setWeaponClipAmmo
- setWeaponFiringRate
- setWeaponFlags
- setWeaponProperty
- setWeaponState
- setWeaponTarget