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

[Spell] how to make a unit move in a straigth line?

Status
Not open for further replies.
Level 5
Joined
Jan 2, 2013
Messages
84
im trying to trigger a unit to move in a straight line like a missle until it expires. i only know to start from its facing angle, to rest are kinda clueless. i know a little, but if its explained. i'll eventually understand
 
Level 14
Joined
Feb 7, 2020
Messages
387
To control its exact movement you'd need to initialize it then move it with a periodic timer based on an offset value (i.e. move it 10 units every .03 sec in a certain direction).

However, a very basic moving "missile" could be a unit w/ flying, no collision or the locust ability, and fixed height values. However, it can only reliably move short distances else it will most likely move in a zig zag pattern as it calculates pathing (particularly at any odd angles that are far away).
 
Status
Not open for further replies.
Top