• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Move trigger on building

Status
Not open for further replies.
Level 27
Joined
Dec 3, 2018
Messages
905
  • Rune Call Function
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Rune Call
    • Actions
      • Unit - Move (Target unit of ability being cast) instantly to (Position of (Triggering unit))
The targeted unit is a building and this trigger doesn't work. What can i do pls help
 
This Event is generally never good to use in any situation:
  • Unit - A unit Finishes casting an ability
95% of the time you want to use this Event since it fires at the precise moment of execution:
  • Unit - A unit Starts the effect of an ability
Also, moving buildings can be weird. Try using SetUnitX() and SetUnitY() if the trigger still doesn't work after fixing the Event:
  • Custom script: call SetUnitX(udg_Target, udg_X)
  • Custom script: call SetUnitY(udg_Target, udg_Y)
 
Last edited:
Status
Not open for further replies.
Back
Top