• 🏆 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!

Stop ability in spellbook from casting

Status
Not open for further replies.
Level 2
Joined
Jul 10, 2009
Messages
9
How do I add stop ability in spellbook so I could cancel skills channeling without closing the spellbook?
 
Level 2
Joined
Jul 10, 2009
Messages
9
then add a trigger which will order him to stop once you cast that spell...
:vw_unimpressed:
  • Events
    • Unit - A unit Is issued an order with no target
  • Conditions
    • (Issued order) Equal to (Order(taunt))
  • Actions
    • Unit - Order caster to Stop
This isn't working. Unit refuses to change order from casting ability i want to be stopped. Stop ability based on taunt. Example would be nice.
 
  • Set Point1 = Position of (triggering unit)
  • Set Point2 = Point1 offset by 1 toward (facing angle of (triggering uni)
  • Unit - Order (triggering unit) to Move to Point2
  • Custom script: call RemoveLocation(udg_Point1)
  • Custom script: call RemoveLocation(udg_Point2)
In jass, it would be something like this :
JASS:
local unit u=GetTriggerUnit()
call IssuePointOrder(u,"move",GetUnitX(u)+CosBJ(GetUnitFacing(u)),GetUnitY(u)+SinBJ(GetUnitFacing(u)))

I experienced problems with "stop" and spellbooks too, and that is the best solution I found.
 
Status
Not open for further replies.
Top