resetShots(newLimit) → {Phaser.Weapon}
Resets the Weapon.shots
counter back to zero. This is used when you've setWeapon.fireLimit
, and have hit (or just wish to reset) your limit.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
newLimit | integer | <optional> | Optionally set a new |
Returns
This Weapon instance.
- Source code: plugins/weapon/WeaponPlugin.js (Line 558)
Please login to continue.