Item that can only be picked up by a certain Unit.

Widescreen

Member
Reaction score
0
Hi the guys! I need help with this, I need an Item that can only be picked up by a certain Unit, in this case an acient, and not by a hero.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
You cant really prohibit units from picking up certain items, but what you can do is force the unit to drop the item immediately.
You write a trigger which checks for (event) "unit aquired item" or something along those lines. You use a condition which compares the type of the item to the item type you want to limit. You also check the units type.

If the item was picked up by an inappropriate unit type you force the unit to drop the item. There is an action in the "Hero" category which does that.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top