Hey.
I have a bunch of objects in the game that have different health values assigned to variables. Is there a way I can grab all the health values from these different objects and combine them in a global variable?
Thanks for the help.
Develop games in your browser. Powerful, performant & highly capable.
For each Object -> Add Object.HP to var
If you need an average value, you can divide var by Object.count after the loop is finished.