• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Casting ability when attacked

Status
Not open for further replies.
Level 2
Joined
Oct 20, 2008
Messages
12
Problem solved... but i cant figure out how to set the prefix to [solved]
Amtoo dumb :/

Hi there,

ive got a problem but it sound so darn easy... man...

ok well i gave a structure the ability to dispel. its an aoe spell.
i just want that, if the units is attacked, it should use dispell every so and so seconds on the attacked unit.

it sound so easy but i think im just too dumb to figure it out.
i don't understand why the "order unit to "..."" just has predefined abilities and not the ability to use custom ones.

thank you for helping me :(
 
Last edited:
Level 13
Joined
Sep 14, 2008
Messages
1,407
Just order it to "cast the ability your custom abilty is made of".

For example: You created a custom spell out of thunderclap and you want a unit to cast that custom spell. So order it to cast thunderclap. (important is that he has ONLY the custom ability and not the custom and the original one because he will cast the original then.)
 
Status
Not open for further replies.
Top