I've made a Blueprint based on Pawn, and have made a basic ammo system for it. When the left mousebutton is pressed, it will subtract the ammo pool by 1 every 80ms(Currently using Timeline for this, is there a more effiecent method?). The new ammo is then stored in a variable.
I want to get this value onto the HUD via UMG, is this possible? This is what it currently looks like;

Also, is there a way to turn this into some event? For example, whenever the variable is subtracted by 1 and updated it will trigger a custom event, IE "onCIWSWeaponFire". And can I then use this event in other Blueprints...?
I want to get this value onto the HUD via UMG, is this possible? This is what it currently looks like;

Also, is there a way to turn this into some event? For example, whenever the variable is subtracted by 1 and updated it will trigger a custom event, IE "onCIWSWeaponFire". And can I then use this event in other Blueprints...?
Comment