- Joined
- Mar 29, 2012
- Messages
- 61
how to detect when a destructible object will die.? (in Gui)
This does not work, tried that, but this only multiplies the number of times one trigger is fired - i.e. in my map with 501 destructibles, the counter I use when "destructible in area dies" went up to 640. Note that I had the event copied 10 times, so in the end it was 64 destructibles that fired the trigger and each did it 10 times.....
Destructable in (playable map area) dies
Destructable in (playable map area) dies
Destructable in (playable map area) dies
Destructable in (playable map area) dies
....
you could store every destructable in array and periodically check if their health is <= 0.405(considered dead, at least for units)
This does not work, tried that, but this only multiplies the number of times one trigger is fired - i.e. in my map with 501 destructibles, the counter I use when "destructible in area dies" went up to 640. Note that I had the event copied 10 times, so in the end it was 64 destructibles that fired the trigger and each did it 10 times.
Here is the test map you PMed me about. Open its trigger editor - I wrote instructions and what happens there.a little problem)) where can i find Trigger - Add to Your_Trigger [the event]