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

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