• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[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 15
Joined
Feb 7, 2020
Messages
397
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