I created a variable in my AI soldier, the variable’s target is set to the HUD I made. When I kill the AI soldier, I want it to trigger an event where it gives me some money.
The money is shown in my HUD and this is where the money variable is.
This is the money variable function in my hud: