Warcraft III resources & community, 2003–2006 · archived

Help with dummy-unit projectile.

2 posts
#1

Help with dummy-unit projectile.

Ok, over the past three or four hours i have been trying to get a unit fall from the sky at a 35 degree angle. So i ened up with:
(This is freehand because the editor wont open at the moment...)

Set Count = Count + 1
Wait(.1)
Set Flyheight(Count) to 1200
Wait(.1)
Order Flyheight to Move-to point Projectile Target
wait(.1)
Set FlyHeightReduct to 10
For a 1 to 11 do
  Animation set ArbornUnit(Count)'s flyheight
  animation to Flyheight(Count)
  wait(.03)
  Set Flyheight(count) to (Flyheight(count) -FlyHeightReduct)
  wait(.03)
  Set FlyHeightReduct to (FlyHeightReduct + 20) 


Now i thought that should act like a project shot down at a slight angle. I tried to imitate gravity, it should end up as a height of 100 (not sure if im right, does my for run 10 or 11 times?). But i just CANT get it to reduce its flyheight... Any help/ideas?

-Edit:
By the way, so i dont take up two posts with this, does anyone know how to black out the in-game minimap? That would own -,-.
#2
To make the map black, make a black image in Paint (or any image you'd like), make it 256x256, get it into .blp (use some file converting program), and import to the map as war3mapmap.blp.

And your for loop runs 11 times.

There should be a speed at which the unit height changes, did you set that?