• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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,240
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