Skip to main content

WeaponConfig

Provides properties to customize the functionality of a weapon.

Properties

reloadTime

Time required to reload ammo (in seconds).

  • Default: 1
  • Min: 0.1
  • Max: 10

rate

Minimum time between shots (in seconds).

  • Default: 0.3
  • Min: 0.1
  • Max: 100

clip

Quantity of rounds that can be fired before reloading.

  • Default: 7
  • Min: 1
  • Max: 999999

ammo

Total quantity of rounds that can be fired.

  • Default: 100
  • Min: 1
  • Max: 999999

infiniteAmmo

Indicates whether the weapon has unlimited ammo. If true, the weapon will never run out of ammo.

  • Default: false

automatic

Indicates whether the weapon fires automatically.

  • Default: true