• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] what is the problem of <unit finishes casting an ability>?

Status
Not open for further replies.
Hello, I made a trigger that serves as shadowstep for rogue.
When I use <unit starts effect of an ability it woks fine, but shadowstep does not get a cooldown
When I use <unit finishes casting an ability> this tigger moves my unit in the center of the map?!

edit: does <target of ability being cast> disappear after the spell is done, and that's why it sends my unit in the center of the map?
  • Shadowstep
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Shadowstep
    • Actions
      • Set Rogue_Shadowstep_Loc[1] = (Position of (Target unit of ability being cast))
      • Set Rogue_Shadowstep_Loc[2] = (Rogue_Shadowstep_Loc[1] offset by 50.00 towards ((Facing of (Target unit of ability being cast)) - 180.00) degrees)
      • Unit - Move (Casting unit) instantly to Rogue_Shadowstep_Loc[2], facing (Facing of (Target unit of ability being cast)) degrees
      • Custom script: call RemoveLocation(udg_Rogue_Shadowstep_Loc[1])
      • Custom script: call RemoveLocation(udg_Rogue_Shadowstep_Loc[2])
 
Yes, the event "Finishes casting an ability" no longer has targeted point, nor targeted unit. It only has Ability Being Cast and triggering unit afaik.

You can make 2 triggers -> "Starts the effect", where you save the targeted point/unit into variable; and the other trigger "Finishes the effect" where you load saved unit/point.
 
Yes, the event "Finishes casting an ability" no longer has targeted point, nor targeted unit. It only has Ability Being Cast and triggering unit afaik.

You can make 2 triggers -> "Starts the effect", where you save the targeted point/unit into variable; and the other trigger "Finishes the effect" where you load saved unit/point.

that worked :thumbs_up:
 
Status
Not open for further replies.
Back
Top