I would like to add the health (instance variable) of all the instances of one object type into one variable.
More specifically, I would like to do
Set totalHealth to enemy(IID#0).health+enemy(IID#1).health+enemy(IID#2).health
But I don't think it works this way. The only way I can think of is to pick each instance separately, and save the enemy's health into a local variable, do this 3 times, then add every value to each other...
Is there any way to do this more easily, using a code similar to the one I described above?