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

Help with dummy-unit projectile.

Status
Not open for further replies.
Level 9
Joined
Aug 27, 2004
Messages
471
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...)
Code:
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 -,-.
 
Level 7
Joined
Aug 5, 2005
Messages
218
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?
 
Status
Not open for further replies.
Top