On my map I got a trigger that checks the "number of living units in a region with matching conditions". If the amount is 0, it should display a message in the chat area. It works fine, but if Splash damage kills 2 or more units at the same time, i get that message multiple times.
Is there a way around this?
Note: The trigger itself has no event, it gets turned on each time a Unit dies
You could add the "Turn Trigger off" function at the end of the message trigger to turn off the triggering trigger (the each time unit dies one). Then you add a wait funtion (like 1 second), then anouther "Turn Trigger on" function.
What this will do is once the message is displayed it will turn the triggering trigger off, wait a bit, then it will turn the trigger back on. This should stop the second message from appearing.
On my map I got a trigger that checks the "number of living units in a region with matching conditions". If the amount is 0, it should display a message in the chat area. It works fine, but if Splash damage kills 2 or more units at the same time, i get that message multiple times.
Is there a way around this? Note: The trigger itself has no event, it gets turned on each time a Unit dies
You could add the "Turn Trigger off" function at the end of the message trigger to turn off the triggering trigger (the each time unit dies one). Then you add a wait funtion (like 1 second), then anouther "Turn Trigger on" function.
What this will do is once the message is displayed it will turn the triggering trigger off, wait a bit, then it will turn the trigger back on. This should stop the second message from appearing.
Thx!!
Works fine now, great! :)