Hello!
I have a Combat Struct in my character Blueprint which determines how much damage my character deals on hit.
I also have an inventory system with stats; There is a damage Stat for weapons, it is just an integer. I want to add the damage integer to the Combat structure damage value to get the final damage value for the structure. I’m pretty new to all of this, but I have been able to manage so far with tutorials. This issue here has me stumped though. Any Idea on how I can accomplish this?
Right-click a blank spot on your blueprint event graph.
In the context menu that appears, type +
This will narrow the options down to things like int + int, int + vector, etc.
click on int + int.
Now you can plug the value from your struct into one pin and the value from your character’s damage var into the other and the output pin will have the sum of the two values, which you can do whatever you want with.