what is smart and what are the autospawn units?
If I order enemy creeps in range of attacked Hero to attack a hero would that not mean they would not stop attacking that hero till it dies? Wouldnt it make sense to have my creeps attack the creep trying to attack me?
this will work, but not the same as DotAHere ya go. I haven't tested it but it should work just fine.
Just change 300 to whatever you want and Player 1 (red) to whatever player controls your creeps.
Trigger:
- Creep Agro
- Events
- Unit - A unit Is attacked
- Conditions
- ((Attacked unit) is A Hero) Equal to (==) True
- ((Attacking unit) is A Hero) Equal to (==) True
- Actions
- Set Temp_Point = (Position of (Attacking unit))
- Set Temp_UnitGrp = (Units within 300.00 of Temp_Point matching (((Matching unit) is owned by Player 1 (Red)) Equal to (==) True))
- Unit Group - Pick every unit in Temp_UnitGrp and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Attack Once (Attacking unit)
- Custom script: call RemoveLocation(udg_Temp_Point)
- Custom script: call DestroyGroup(udg_Temp_UnitGrp)
Stats - Priority (Integer)
Defines at what point the unit/building/hero will be attacked when within a group of units/buildings/heroes being attacked. The values entered can range from 0 to 20, with 0 meaning that the unit/building/hero will be attacked last, and 20 meaning that it will be attacked first.