I have a progress bar that is bound to one of my weapons. However I have 2 other weapons that need to use the same progress bar. I tried creating multiple bindings for the same progress bar but when I do that, it overrides the other.
I tried putting all of them into 1 binding, but the return node only lets me input 1 of them. What are my options?
Have an Active Weapon variable in the Pawn. Set that var to the weapon the player is currently using. The widget pulls data from the Active Weapon instead.
Alternatively, have an enumerator / IndexID describing which weapon is in use - the widget pulls data with the Enum + Select nodes combo.
Apart from that, instead of the widget pulling data from the player, you can push the data into the widget instead. The player knows which weapon is in use, right? And probably has access to the widget - this way you wouldn’t even need to cast every frame.