• 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.

Kaboom ability help

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2008
Messages
200
Well I made a unit just to used kaboom ability. So for it to use it right away if I make it target a unit I needed to take away its attacks. How can I make the unit use kaboom ability automatically when an enemy unit is near
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
Cokemonkey is right. You need a trigger which looks similar to this:

Event: Unit is attacked (or if possible unit attacks)

Condition: Attacking unit = UnitYouWantToKaboom

Action: Make UnitYouWantToKaboom cast neutral kaboom on attacked unit

OR you remove the damage from the unit and say:

Event: Unit gets order targeting unit

Condition: AND: 1.Ordered Unit = UnitYouWantToKaboom 2.Owner of (target of order) = hostile

Action: Order Unit to cast kaboom on target of order

(i m not sure if target of order exists^^)

I hope this helped.. I had no we so i had to think of the trigger...
 
Level 7
Joined
Oct 14, 2008
Messages
340
i think if the unit is classified as suicidal, a smart command will make him suicide automatically instead of attack.

other than that, you can just tell him to cast kaboom where the unit is standing?
 
Status
Not open for further replies.
Top