Reload

If you want your gun to have infinite ammo and to never reload, you can delete the Reload module completely from your gun.

  Reload:
    Trigger: <Trigger>
    Magazine_Size: <amount>
    Ammo_Per_Reload: <amount>
    Unload_Ammo_On_Reload: <true/false>
    Reload_Duration: <ticks>
    Shoot_Delay_After_Reload: <ticks>
    Start_Mechanics: <Mechanics>
    Finish_Mechanics: <Mechanics>
    Ammo:  # Scroll down for more information

Trigger

The Trigger to use to trigger reloading.

Magazine_Size

The maximum amount of ammo that can be loaded into the gun.

Ammo_Per_Reload

Use this feature to load bullets individually (some real-life guns have built-in magazines, which you load into 1 by 1). Otherwise, it defaults to Magazine_Size.

Unload_Ammo_On_Reload

Defines if ammo is unloaded on reload. This means that all remaining ammo in the weapon is taken out from the weapon, and if Ammo is defined, they're given back to the player.

Reload_Duration

The time, in ticks, that it takes to reload the magazine.

Shoot_Delay_After_Reload

The time, in ticks, after a reload before the gun can be shot.

Start_Mechanics

The mechanics triggered when the weapon starts reloading. Use the Mechanics wiki.

  • @Source{} -> The entity holding the weapon.

Finish_Mechanics

The mechanics triggered when the weapon completes reloading. Use the Mechanics wiki.

  • @Source{} -> The entity holding the weapon.

Ammo

Check out the Ammo wiki page.

Last updated