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

[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