• 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.

[JASS] Drop picked up item

Status
Not open for further replies.
Level 28
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
JASS:
UnitDropItemPoint(whichUnit, whichItem, x, y)
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.
 
Status
Not open for further replies.
Top