| 06-30-2004, 10:48 AM | #1 |
I haven't been triggering for a while, so I forgot how to properly assign units using the "For each For each (Integer A) from # to #, do (Actions)" with Variables. The numbers are 1 to 12, and this is the trigger: For each (Integer A) from 1 to 12, do (Actions) Loop - Actions Unit - Create 1 Portal for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees Set sfx_portal[(Integer A)] = (Last created unit) When I add the "Unit - Remove" action, it doesnt work. Unit - Remove sfx_portal[(Integer A)] from the game It creates the units, but doesnt remove them. How do you properly assign them? |
| 06-30-2004, 11:31 AM | #2 |
Did you add the remove function to the loop or is it outside it? If it's somewhere else then you need to create another loop (from 1 to 12) and there you should add the remove function. If it's inside at the end of the loop then I donno :/ Martinez |
