I've been working on what some may think of as an normal Multishot, but I haven't found any others before that's exactly like this.
Anyhow, the point is for the hero to target an area of 400 then the unit should fire N amount of arrowns at random targets inside the 'aim'.
I thought it must be easy to do so I went with what I thought was the easiest idea but I can't get it to work, anyone see what might be wrong? :
Anyone see what might be wrong (I promise it's a noobish error)?
Anyhow, the point is for the hero to target an area of 400 then the unit should fire N amount of arrowns at random targets inside the 'aim'.
I thought it must be easy to do so I went with what I thought was the easiest idea but I can't get it to work, anyone see what might be wrong? :
-
Multishot
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Multishot (Normal)
-
Actions
- Set MultishotCaster = (Casting unit)
- Unit Group - Add all units of (Random ((Level of Multishot (Normal) for MultishotCaster) x 2) units from (Units within 200.00 of (Target point of ability being cast) matching (((Matching unit) belongs to an enemy of (Owner of MultishotCaster)) Equal to True))) to MultishotUnitGroup
- Unit - Create 1 Dummy (Multishot) for (Owner of MultishotCaster) at (Position of MultishotCaster) facing Default building facing degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Turn collision for (Last created unit) Off
- Unit - Move (Last created unit) instantly to (Position of MultishotCaster)
-
Unit Group - Pick every unit in MultishotUnitGroup and do (Actions)
-
Loop - Actions
- Unit - Order (Last created unit) to Attack Once (Picked unit)
- Unit - Cause MultishotCaster to damage (Picked unit), dealing ((Real((Agility of MultishotCaster (Include bonuses)))) x 3.00) damage of attack type Hero and damage type Normal
-
Loop - Actions
-
Events
Anyone see what might be wrong (I promise it's a noobish error)?