• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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