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

Charging Spell help

Status
Not open for further replies.
Level 2
Joined
Jun 5, 2005
Messages
22
Could anyone help me with a "Charge" type spell? I'm trying to make it so my unit runs full speed at a target, pushing any units (allied or not) out of the way and dealing X damage. The units that are pushed out of the way should slide away from the caster, but only enough to make a path. When the unit hits its target, it deals Y damage.

I tried a search on Slide spells, but I didn't get the type I wanted. Thanks for any help! :)
 
Level 2
Joined
May 18, 2005
Messages
13
Well you're ambisious. Heres a rough idea for you. You Could make your a trigger that make your unit move towards his target by and order. Then make that hero fill a variable. Another trigger would detect if a unit came into a certain range of this unit. Get a dummy unit to damage this unit and make a trigger command to move this unit instantly out of the way of the hero. But i'm not sure if this will work its just a base idea

Jimmie
 
Level 2
Joined
Jun 5, 2005
Messages
22
Cool, thanks. The only thing is, instead of being moved out of the way instantly, I wanted the units to slide smoothly back. Thanks for the other stuff though.
 
Level 2
Joined
May 18, 2005
Messages
13
read the other spell on this forum on star wars spell i gave a push spell idea there maybe you could use that.

Jimmie
 
Status
Not open for further replies.
Top