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

what triggers needed to attack while moving?

Status
Not open for further replies.
Level 10
Joined
Jul 10, 2004
Messages
595
I'm making a map where i need to be able to attack while moving.\
The controls are by arrow key so what i would like is a way to move with arrow keys, then press another key and your unit automaticly attacks directly in front of it while still moving, and if an enemy is in range, it damages that unit.

Is there a way to do this? If so please tell me.
 
Level 2
Joined
Aug 15, 2004
Messages
18
Maybe use a skill based on an attack spell for that. Like Breath of Fire or Shockwave with greatly reduced AOE. Just make it play the attack animation and change the projectile art to nothing. I don't have any experience with that kind of things, so you'll have to find out how to do that by yourself.
 

Rad

Rad

Level 5
Joined
Sep 11, 2004
Messages
163
so you mean like in tank commanders, where you attack while moving, or like (kind of) inarchery tactics where u attack in a line?
 

Rad

Rad

Level 5
Joined
Sep 11, 2004
Messages
163
im not a pro at WE but i can get it to work... i got 2 ideas right now (probrably crappy) but it depends if your guy is ranged or whatever u didnt give specific info :p
 
Level 10
Joined
Jul 10, 2004
Messages
595
well, there are 2 maps im gonna do this in.
The first is a race map, the second is a tank arena.

I need it so while the unit is in motion, you can press a key and they fire a missle or soemthing while they are still moving, so they have to be able to attack range while moving, can u do that?
 
Level 7
Joined
Jul 30, 2004
Messages
451
skaterjcp said:
well, there are 2 maps im gonna do this in.
The first is a race map, the second is a tank arena.

I need it so while the unit is in motion, you can press a key and they fire a missle or soemthing while they are still moving, so they have to be able to attack range while moving, can u do that?

u could use a unit-bullet system which allows u to fire missiles that collide and stuff, i have a demo map of it somewhere on these boards, i posted it like 3 times though so i'm too lazy to again

u could also pick units infront of ur unit then do an eliptical check (running from self to polar offset), then pick the closest unit in the elipse and hurt that unit (that would simulate instant hit bullet weapons basically)

i guess u could create a dummy unit that fires for u if u wanted
 
Status
Not open for further replies.
Top