Cancle Abilitys

Status
Not open for further replies.
Level 5
Joined
Jul 17, 2006
Messages
145
If you go into wc3 and set a casting time for an ability, a unit that casts it cannon move or do anything untill the casting time is up. I woud like a trigger or Jass code that allows someone to cancle casting, and i know there is a way to do this. Anyways, anyone who knows how to help me, thanks in advance :P
 
What i want is, if a unit casts an ability with a casting time, and than tells the unit to move somewhere, it stops casting the ability and instead moves the unit.
 
make a map, and give a footmen cripple. Set the cast time on cripple to 5. Make a creep, ande then test your map. Tell the footmen to cast cripple on the creap. For the 5 seconds that its casting, it cant move, it cant shoot, it cant do anything, even if you tell it to.
 
Oh...I though you were talking about abilities such as starfall.
Well I don't really see a way to do this. Perhaps the best solution would be to make a separate spell based of channel and after casting it run a wait. After 5 seconds or so, if the unit's current order is still "channel", create a dummy caster and cast cripple (or whatever you want) on your target.
 
hmm, maybe i can do something like, player issues unit order, stop casting ability. Anyways, ill look into this later, a bug with a larger priority just popped up.
 
Status
Not open for further replies.
Back
Top