[Trigger] Removing Dummy unit when it comes close to target

Status
Not open for further replies.

Wojbik

W

Wojbik

Hello!
I am writing because I have a problem with trigger, like a total noob, again. Well, I've made an "Ulti" for one of heroes in my map which is called Angel of Flames. It summons dummy unit which charges to target, dealing damage every foe in range(when Angel is charging). And I have problem again, which is probably easy as hell to solve but I'm too big noob to see the most obvious way out. I just... Can't remove Angel unit. You know, I've prepared whole code, and I have problem with that:

  • If (All conditions are True) then do (Then actions) else do (Else actions)
I mean, I don't have an idea how to make condition for that, Angel is close to target. I've tried with region convert to point(position of targeted unit) but it doesn't work.
Thanks.
 
I'm sure i understand the problem exactly, but this might do:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
      • (Distance between (Position of dummy) and (Position of target)) Less than 10.00
    • Actions
      • Unit - Remove dummy from the game
 
Status
Not open for further replies.
Back
Top