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

Cone Attack

Status
Not open for further replies.
So, anyone has an idea how would I keep pressing units in a cone backwards by say... 1 point per 0.03 with SetUnitX/Y, while the unit is attacking ground/to the location of the target.

Event examble:
Unit notices a target
Unit starts attacking target
Cone loop comes and starts pushing the target back and everything along the cone
Unit stops attacking
Cone goes down and units can move freely

Since, as far as I am concerned, there is no event for "Unit is Attacking" other than that where it is targetting a widget.
 
*facepalm* I'm afraid that would not help. The attack may be targeted at plain terrain, and thus not damage anything.
Since the attack is based on Artillery, it can be targeted on one stop at a terrain and it keeps shooting it there.

One way to do this would most likely be indexing every unit of the type, and create a loop for each of them, checking
their current order and calculating the cone from that. Unfortunately, I do not remember/know how one would make
a efficient group pickup in a cone.
 
Status
Not open for further replies.
Top