- Joined
- Feb 2, 2006
- Messages
- 1,631
There is a trigger with the event EVENT_UNIT_PICKUP_ITEM which should drop the item if it is owned by another player.
It then calls
which should drop the item.
UnitDropItemPoint() always returns true but sometimes the item stays in the inventory.
As far as I have tested it, EVENT_UNIT_PICKUP_ITEM does always fire when the item is already in the inventory.
My question is why doesn't it work sometimes? What is a safe way to drop the item.
It then calls
JASS:
UnitDropItemPoint(whichUnit, whichItem, x, y)
UnitDropItemPoint() always returns true but sometimes the item stays in the inventory.
As far as I have tested it, EVENT_UNIT_PICKUP_ITEM does always fire when the item is already in the inventory.
My question is why doesn't it work sometimes? What is a safe way to drop the item.