• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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