Skip to content

Ammo Data Setup


Overview

AmmoData property of the TwinGunHandler is used to control various settings related to the projectile that is generated by the guns.
It can be accessed from the Details tab of TwinGunhandler, Shooting, AmmoData.

AmmoData


You can change the values from either the details tab of the TwinGunHandler, or by using the AssignAmmo function during runtime.

AssignAmmo


By default, the FemaleShooter package includes 3 default AmmoData setting that can be used as examples.
You can find it in Content/FemaleShooter/Blueprint/Data/Ammo.

AmmoDataLocation


If you open one of the AmmoData files there, you will find several properties that you can modify.

AmmoDataSetting

Description for each of the values can be found below,

  • Bullet Mesh, the static mesh used for your bullet
  • Muzzle Flash Effect, the muzzle flash effect that is generated when you shot a projectile
  • Trail Effect, the bullet trail effect for your projectile
  • Impact Effect, the effect played when your bullet hit something
  • Bullet Speed, the velocity of your bullet
  • Gravity, the effect of gravity on your bullet (0 means no effect from gravity, 1 is 1G normal gravity)
  • Impact Modifier, how strong will the impact be when your bullet hit an object (this is affected by the bullet velocity)
  • Lifetime, how long should your bullet stay alive before it got removed from the world

You can create your own custom AmmoData by creating a duplicate of one of the default AmmoData files above, and modifying the values.
However, if you wish to do it manually, the steps are available here