- Joined
- Jan 25, 2006
- Messages
- 103
Hi all, I need help with making this thing work.
I am trying to do: A player clicks an icon and I have dummy unit set up, now that dummy is removed, the real unit is spawned at the center, i add expiration counter for the unit and when the timer expires the unit is removed and counter destroyed.
The problem arises when you train more than one of this unit.
So if you train second unit, the counter that is attached to the first unit that needs to expire is reset, and even when the counter expires, only 1 unit is removed instead of both, since I'm using 1 timer variable, but the thing is I don't know how else to make this work.
here are the triggers I'm using:
and
Any idea how to make it work, so that even if you spawn several of these units or couple of users spawn these unit, each has its own counter separate from one another and the units are being removed as each counter expires properly.
Thanks in advance!
I am trying to do: A player clicks an icon and I have dummy unit set up, now that dummy is removed, the real unit is spawned at the center, i add expiration counter for the unit and when the timer expires the unit is removed and counter destroyed.
The problem arises when you train more than one of this unit.
So if you train second unit, the counter that is attached to the first unit that needs to expire is reset, and even when the counter expires, only 1 unit is removed instead of both, since I'm using 1 timer variable, but the thing is I don't know how else to make this work.
here are the triggers I'm using:
and
Any idea how to make it work, so that even if you spawn several of these units or couple of users spawn these unit, each has its own counter separate from one another and the units are being removed as each counter expires properly.
Thanks in advance!