• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.
Level 5
Joined
Jan 2, 2013
Messages
87
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
 
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.
Back
Top