Am new to this engine and i been struggling trying to add ammo to my weapon if anyone can help i would appreciate it just send me the ammo blueprint and i copy it from there thanks
my fire function
Am new to this engine and i been struggling trying to add ammo to my weapon if anyone can help i would appreciate it just send me the ammo blueprint and i copy it from there thanks
my fire function
Why don’t you just add a variable Ammo (integer) in your blueprint? Set it to some value, for example, 10. Then in function SpawnBullet or just before calling it, add a branch node to check if Ammo > 0. If Ammo is > 0 then spawn bullet and set Ammo to Ammo - 1 (or use node “–”, that will subtract 1 from Ammo).
show me an example please