• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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