- Joined
- Mar 29, 2012
- Messages
- 61
how to detect when a destructible object will die.? (in Gui)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
onDeath

Events


Destructible - A destructible within (Entire map) dies

Conditions

Actions
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
....
MapIni

Events


Map initialization

Conditions

Actions


Destructible - Pick every destructible in (Playable map area) and do (Actions)



Loop - Actions




Trigger - Add to Your_Trigger the event (Destructible - (Picked destructible) 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]
