I have 8 Global Values being used for Weapon Energy in my game. I'm trying to figure out a function that selects the global value with the lowest value of those 8 (like if you were to pick up weapon energy, it would refill the lowest value first).
Anyone have an example of that laying around? Thanks in advance.