- Joined
- Jul 20, 2009
- Messages
- 295
Hello,
I'm trying to make an ability similar to that of attack but it seems I keep failing.
I want the game to detect when a player right clicks on a unit (to attack it) and then make a selected unit to cast 'attack' on the target.
Edit: Nevermind! I found the solution for this though I got another problem which is, when I do the following:
It triggers whenever I melee hit AND cast spells.
The problem is I only want it to trigger when a melee damage is taken and not damage from spells (even though some don't do dmg e.g. 0 dmg), how could I do that?
Thanks!
I'm trying to make an ability similar to that of attack but it seems I keep failing.
I want the game to detect when a player right clicks on a unit (to attack it) and then make a selected unit to cast 'attack' on the target.
Edit: Nevermind! I found the solution for this though I got another problem which is, when I do the following:
- Trigger - Add to Melee DMG Detect <gen> the event (Unit - (Triggering unit) Takes damage)
The problem is I only want it to trigger when a melee damage is taken and not damage from spells (even though some don't do dmg e.g. 0 dmg), how could I do that?
Thanks!