agentanorxia
New Member
- Reaction score
- 0
Hello All,
I'm trying to do a relatively simplistic thing - at the beginning of the game, set an array to five units that are already created and access them later.
So I set up a global variable, set array[1], array[2], array[3]... to be units. I then create a trigger that has as an event saying when array[3] dies, do X. However, when any unit dies, the action happens. Any idea why?
Thanks
I'm trying to do a relatively simplistic thing - at the beginning of the game, set an array to five units that are already created and access them later.
So I set up a global variable, set array[1], array[2], array[3]... to be units. I then create a trigger that has as an event saying when array[3] dies, do X. However, when any unit dies, the action happens. Any idea why?
Thanks