- Joined
- Dec 9, 2005
- Messages
- 523
There are several triggers I want to do and I want to know if it works with this function.
1. Does it work for Specific Unit events, for instance:
I create a set up trigger, set a variable to define a unit (let's say call it Zombie). Then in the set up trigger I create a "Trigger - Add New Event" function to another trigger, saying something like "if Zombie is attacked". Will that new trigger fire when Zombie unit is attacked?
2. Does it work for destructibles, for instance:
I set up a trigger with hashtables etc. Each time a unit casts a spell on a destructible, I save the handle of that destructible on a hashtable, then create a unit and save THAT unit's handle on the same hashtable (linking destructible with unit created)... then create a "Trigger - Add New Event" function for when the set up destructible is destroyed, the linked unit is destroyed as well. Will that fire the trigger and actually kill the unit?
What else does this function do (or does not do)?
Thanks all.
1. Does it work for Specific Unit events, for instance:
I create a set up trigger, set a variable to define a unit (let's say call it Zombie). Then in the set up trigger I create a "Trigger - Add New Event" function to another trigger, saying something like "if Zombie is attacked". Will that new trigger fire when Zombie unit is attacked?
2. Does it work for destructibles, for instance:
I set up a trigger with hashtables etc. Each time a unit casts a spell on a destructible, I save the handle of that destructible on a hashtable, then create a unit and save THAT unit's handle on the same hashtable (linking destructible with unit created)... then create a "Trigger - Add New Event" function for when the set up destructible is destroyed, the linked unit is destroyed as well. Will that fire the trigger and actually kill the unit?
What else does this function do (or does not do)?
Thanks all.