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

[Solved] Move unit without breaking channel

Status
Not open for further replies.
Say you have this trigger, and trigger it with a Dark Ranger - Life Drain spell.
  • Events
    • Unit - A unit Start the effect of an ability
  • Conditions
  • Actions
    • Unit - Move (Casting unit) instantly to ((Position of (Casting unit)) offset by 100.00 towards (Random angle) degrees)
This will abort the spell being cast, although I cannot really see the reason why it would. Well, of course a move order would abort it, but a "change position"/teleport should be possible, right?

I cannot set the "real-field" position x/y either.
Is this possible?

Of course, I'd have to clean-up points etc; this is a minimum working example.
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,537
  • Set TempPoint = ((Position of (Triggering unit)) offset by 100.00 towards (Random angle) degrees)
  • Custom script: call SetUnitX ( GetTriggerUnit(), GetLocationX(udg_TempPoint) )
  • Custom script: call SetUnitY ( GetTriggerUnit(), GetLocationY(udg_TempPoint) )
  • Custom script: call RemoveLocation ( udg_TempPoint )
This will move a unit without issuing the "stop" order.
 
Status
Not open for further replies.
Top