How to make diffrent ammo types?

Hello my friend!

Im done with your BP :nerd_face:

I can walk you through if you need

Guys & gals, before you dive too deep into the methods suggested above, do note that Damage Type exists:

It meshes well with the native Damage Dealing system and is already an overkill for most use case scenarios:

image

In video form if you prefer:


Perhaps it’s worth looking into it before you reinvent the entire wheel. On the other hand, creating a completely custom system can be a great exercise!

1 Like

Thank you guys for the reply!
I’ll go ahead and look deeper into these!

1 Like

Could be an option, but think this would make it more complicated with the ammmo amount, equipted weapon and so on.

Or am I wrong? (Didn’t work really much with the Damage Types)

1 Like

The topic is about processing damage types, that’s what the system is for - it’s immutable so it should not be used for anything dynamic.

Ammo can be absolutely counted in the WeaponBP, or maybe even ClipBP if you’re dealing with a more complex system. And the clip you hook up to the gun knows its damage type.

Let’s say you’re dealing with a sim-like (Arma) type of game where the player carries multiple ammo clips for various guns, each with different capacity and projectile performance. Each clip should track its own ammo, the gun should only care about what is loaded into the chamber and what to pull the next bullet out of.


Choosing the right tool for the job will depend on the scope. Having a handful of enumerators might be perfectly fine! I was merely suggesting looking into the damage types in case the wires get out of hand… :slight_smile:

Good luck!

1 Like

Good to know! Thank you :slight_smile:

In the weapon child bp I have the ammo type variable that is taken from the character bp(where I have the ammo variables for each type of ammo: the calibre and it’s type ex: 556 FMJ/ 556 AP/ 9mm AP). My main issue right now is how do I get the ammo from the character? But the only kind of ammo the gun needs. In my example my gun only needs the 9mm calibre and can use all kind of 9mm.


Someone suggested using a Tmap, but I’m not sure I used it right.
If things do get really messy I’ll surely look into the “Damage Type”