I need some help :)

Status
Not open for further replies.
Level 1
Joined
Oct 14, 2008
Messages
2
I made myself a very nice trigger , its like a passive omnislash (dota version) that i rly enjoy and i need to keep but there is a problem that i cant solve (with my triggering skills).
here is the part of the trigger that bugs me:
Unit - Cause (Attacking unit) to damage circular area after 0.01 seconds of radius 400.00 at (Position of (Attacking unit)), dealing ((100.00 x (Real((Level of Haunt (Ghost) for (Attacking unit))))) - 50.00) damage of attack type Spells and damage type Normal
I wona keep the splash but to make it hit enemies only , i belive that is possible but i dont know how to do it ..
Thanks in advance :wink:
 
Level 15
Joined
Sep 3, 2006
Messages
1,738
Use a unit group to judge the targets.

  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units within 400.00 of (Position of (Triggering unit)) matching (((Owner of (Picked unit)) is an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
      • Loop - Actions
        • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
 
Level 1
Joined
Oct 14, 2008
Messages
2
I needed to do some little adjustments but thanks to both of you , En_Fuego and Squiggy my trigger is running just like i wanted to . Thanks guys for your quick help and to all THW ! :thumbs_up:
 
Status
Not open for further replies.
Top