TideOfChaos
New Member
- Reaction score
- 25
I need a way to detect when I unit 'harvests' a destructible. It doesn't seem to work with any of the "Event - unit casts/channels/stops an ability".
I need a way to detect when I unit 'harvests' a destructible. It doesn't seem to work with any of the "Event - unit casts/channels/stops an ability".
That will trigger the event when you order the unit to harvest.
Not when it is harvesting. There is some time between you order the unit to harvest and the actual harvesting.
Maybe this trigger will help:
Trigger:
- test
- Events
- Unit - A unit Is issued an order targeting an object
- Conditions
- (Issued order) Equal to (Order(harvest))
- Actions
- Game - Display to (All players) the text: Harvesting
I tested it, and it works. The only problem is that it triggers twice: when the unit targets a tree and when it returns the lumber to the townhall. And it triggers also on goldmines.
I'm digging into it to find a sollution