How to make Overwatch reload system?

Hey everyone! I’m creating an Overwatch PvE experience in Unreal 4, but I’m having trouble replicating the weapons reloading system found in the official release. Most tutorials reference a “Max ammo” count, but I’m looking to have an infinite amount “ammo clips” at their disposal. However when the player runs out of ammo in the clip, they must reload automatically, or reload manually when hitting the “R” button.

Any help would be appreciated.

Thanks!

  • Have an int variable for ShotsPerClip, which is the total shots you can take before you need to reload.
  • Create a ShotsFiredThisClip integer variable that you increase every time a bullet is fired. When that value is >= ShotsPerClip, then do not allow the player to fire, and call your reload function.
  • In your reload function, set a delay for however long it takes to reload, and at the end, set your ShotsFiredThisClip to 0. Which will allow your player to shoot again.
  • Tie your R key to call the Reload function for them to reload early.

Thanks! This was perfect! ^^

Glad it worked for you!
You should move this answer you made to be a comment under my answer