• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] How to prevent AI Heroes from auto-picking any item on the ground?

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
Try this:

Event
A unit is issued an order targeting an object

Conditions
(Target item of issued order) Not equal to No item
*hero is AI controlled*

Actions
Pause triggering unit
Order unit to stop
Unpause unit

It might not work perfectly as the unit can be stuck in a loop trying to get the item and the ordered to stop again.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
Not tried but, if you set these items' priority to 0 or a negative value via object editor they might not want to pick up.
 
Status
Not open for further replies.
Top