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

[Spell] Need help with moving units

Status
Not open for further replies.
Level 9
Joined
Jun 25, 2009
Messages
427
Hello hivers ;) long time no see.

So i was improving my spellpack (check it out in my signature) and i have bumped into one problem. When i move a unit, it stops channeling spells and triggered action (animation-play attack). And yeah it is the function Unit - Move (Triggering Unit) to Somewhere. I know there is some way in custom script (cause i don't use jass, sorry) to move a unit without making him lose his animation or channeling spells.

Hoping for an answer, cause i looked and searched in hive's forums a lot.

Tiche3
 
  • Custom script: call SetUnitX (udg_Unit[udg_Instances2], GetLocationX (udg_Point2))
  • Custom script: call SetUnitY (udg_Unit[udg_Instances2], GetLocationY (udg_Point2))
Point2 is the supposed offset of the Point1, which is the position of your unit.
Unit[Instances] is the supposed unit with the array conditioning.

This script doesn't interrupt orders :)
 
Status
Not open for further replies.
Top