In my game I have a number of identical objects which I am creating using "create object" at the start of the frame. Various events in the game set the "alterable value A" of an object.
What I want to do is add up the "Alterable value A" for each of the objects I have created. e.g:
Object 1 has alterable value A = 0
Object 2 has alterable value A = 1
Object 3 has alterable value A = 3
Object 4 has alterable value A = 5
How can I get the total (9 in this example) so I can then trigger an event when a particular total is reached.
In pseudo-code, I would do something like:
For each object
Add Alterable Value A to Counter
I have no idea how to do this in MMF2!
Thanks in advance