- Joined
- May 15, 2008
- Messages
- 105
I need a trigger that limits non-hero unit of specified type to 8 per map at once. The problem is:
EVENT_PLAYER_UNIT_TRAIN_CANCEL occurs when train order is removed from the queue
EVENT_PLAYER_UNIT_TRAIN_START occurs when unit is starting to be trained (so it is 1st in the queue)
That means every cancel from 2nd and further places in queue makes my current system useless.
I would strongly appreciate your help.
EVENT_PLAYER_UNIT_TRAIN_CANCEL occurs when train order is removed from the queue
EVENT_PLAYER_UNIT_TRAIN_START occurs when unit is starting to be trained (so it is 1st in the queue)
That means every cancel from 2nd and further places in queue makes my current system useless.
I would strongly appreciate your help.