- Joined
- Sep 21, 2005
- Messages
- 33
Hi,
I have a rain of arrows spell which uses artillery units to attack ground at location, spell works fine but i recently added a custom damage system as well and now i need to detect when a unit is hit by the artillery.
-EVENT_PLAYER_UNIT_ATTACKED does not detect artillery attacks
-knowing the location of the attack does not help me because of flight time, i know how to make arrow functions using timers but i don't want to because i want the arrows to have very high arcs and i dont know how to make arrows look correctly during the arc
-EVENT_UNIT_DAMAGED can detect artillery attacks and GetEventDamageSource() will show me what caused the damage but i will have to add almost every unit to the trigger
so my question is it ok to add every unit as they enter the map to the trigger or is there another solution or am i boned?
Thanks
I have a rain of arrows spell which uses artillery units to attack ground at location, spell works fine but i recently added a custom damage system as well and now i need to detect when a unit is hit by the artillery.
-EVENT_PLAYER_UNIT_ATTACKED does not detect artillery attacks
-knowing the location of the attack does not help me because of flight time, i know how to make arrow functions using timers but i don't want to because i want the arrows to have very high arcs and i dont know how to make arrows look correctly during the arc
-EVENT_UNIT_DAMAGED can detect artillery attacks and GetEventDamageSource() will show me what caused the damage but i will have to add almost every unit to the trigger
so my question is it ok to add every unit as they enter the map to the trigger or is there another solution or am i boned?
Thanks