First post and a I'm a bit of a mapmaking noob so bear with me.
I want my AI controlled enemy hero "Black Arrow" to pick up items/power ups etc. while farming creeps in my slightly sloppy, highly improvised single player DOTA style map. I don't know how to get Black Arrow to wait until the end of a creep fight to pick up items and I obviously don't want her to go and pick them up mid-fight while creeps are still attacking, so I set the dropped item to teleport to her, to avoid disturbing the fight.
This is my attempt. Why is it not working?
I want my AI controlled enemy hero "Black Arrow" to pick up items/power ups etc. while farming creeps in my slightly sloppy, highly improvised single player DOTA style map. I don't know how to get Black Arrow to wait until the end of a creep fight to pick up items and I obviously don't want her to go and pick them up mid-fight while creeps are still attacking, so I set the dropped item to teleport to her, to avoid disturbing the fight.
This is my attempt. Why is it not working?
-
Pick Up Items
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Killing unit) Equal to |c007900f2Black Arrow|r 0291 <gen>
-
Healing Equal to False
-
-
Actions
-
Set ItemA = (Position of (Dying unit))
-
Set ItemB = (Region centered at ItemA with size (800.00, 800.00))
-
Item - Pick every item in ItemB and do (Actions)
-
Loop - Actions
-
Item - Move (Picked item) to (Position of |c007900f2Black Arrow|r 0291 <gen>)
-
Unit - Order |c007900f2Black Arrow|r 0291 <gen> to Right-Click (Picked item)
-
-
-
Custom script: call RemoveLocation(udg_ItemA)
-
Custom script: call RemoveRect(udg_ItemB)
-
-