[Trigger] Item droppability check?

Status
Not open for further replies.
Level 2
Joined
Feb 22, 2015
Messages
13
Is there any way to check item droppability on owner's death? There is SetItemDropOnDeathBJ function which can be used to set droppability of item, but I didn't find function to check this thing.

If there is no function for that, can you help me with making it?
Dummy unit -> give item to Dummy unit -> kill Dummy unit
And here I'm stuck and too lazy to test. If item isn't droppable on death, will item's variable be empty and I can just check "if (Item == null) ..." or something else will happen? Also should I use "Wait 0.01" after killing of Dummy unit (to make sure item is destroyed\dropped) or everything will be okay?

UPD: meh, made it as checking if item is owned or not after death of dummy hero. It is working, but I still would like to use native function if it exists.
 
Last edited:
Status
Not open for further replies.
Top