• 🏆 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] Follow with no distance

Status
Not open for further replies.
Level 3
Joined
May 10, 2014
Messages
41
Hello!

I want to make a simple spell:
- unit cast spell on unit;
- create a invisible unselectable unit (locust);
- order created locust to follow target unit.

Locust will belong to owner of caster.
Target unit can be an enemy or an ally.

The problem is distance, that following unit will keep while moving.
I only need locust be in position of target unit.

But I want to realize it without instantly moving locust every moment.
Is there any easy way?

Thank everyone for any information! :as:
 
Level 25
Joined
May 11, 2007
Messages
4,651
Order the locust unit to move to the position of the unit? Set the position slightly behind the unit so the locust unit doesn't go around it.

Add this in a trigger that runs every 0.25 seconds or so.
 
Status
Not open for further replies.
Top