| 08-31-2003, 05:12 AM | #1 |
Is there a way i can have a trigger activated when a unit is hit by a spell, or is affected by an ability (like immolation) |
| 08-31-2003, 05:21 AM | #2 |
I would just use 'Unit casts a spell' event and detect the target. If its a missle spell, you gotta find the speed of spell divided by the distance to find time it takes for it to hit. But you get really complicated if its homing spell or if the unit moves. |
| 08-31-2003, 06:57 AM | #3 |
Getting the target of the spell won't help for a spell like immolation, or for any auras. |
| 08-31-2003, 07:04 AM | #4 |
k ive got a system, its just that it woulda really made it simpler if i could detect targets for auras n such |
| 08-31-2003, 08:28 AM | #5 | |
Quote:
For auras, just take all units within the area of the unit which have the aura, with the area of the aura. Same thing with an immolation spell, just check that immolation is activated (Make a boolean). |
