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

[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 73
Joined
Aug 10, 2018
Messages
7,875
  • 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