• 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.

[Spell] Flying Unit Problem

Status
Not open for further replies.
Level 7
Joined
Nov 18, 2012
Messages
272
I want to make a unit change a flying height to a specfific height from a specific, different height when reaching a distance, and continue to raise the same angle after it reaches it's destination.

  • Set M_ZSpeed = ((Current flying height of MIndex[M_Int]) - (((M_TargetHeight[M_Int] - ((M_StartHeight[M_Int] + (Default flying height of M_Index[M_Int])) x 1.00)) x (M_Distance / M_XSpeed)) / 0.02))
is the speed calculus correct? It increases the unit's height 50 times a second.
 
Status
Not open for further replies.
Top