• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,407
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