• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Move trigger on building

Status
Not open for further replies.
Level 26
Joined
Dec 3, 2018
Messages
873
  • 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
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,535
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.
Top