• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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