Good Morning!
After some tinkering and reading I can't figure out how to get an NPC to drop items they pickup when they die or take damage. I have an NPC spider driven by a Behavior Designer behavior tree, its able to pickup items and add them to its UIS default main item collection. The thing I can't do is have it drop it so the player character can pick it up. I've tried the Drop script provided in UCC inventory section but its not working because line
"var item = inventory.GetItem(i, m_ItemType);"
needs an itemIdentifier instead of an int and I can't get it to work. I tried using the ItemDropper script from the UIS and that didn't work. I tried reverse engineering the UCC/UIS integration demo and I'm lost. I don't know what is calling the drop from the inventory.
How can I get a NPC that is using UCC and UIS to drop an item it has picked up on its death?
Thanks!
After some tinkering and reading I can't figure out how to get an NPC to drop items they pickup when they die or take damage. I have an NPC spider driven by a Behavior Designer behavior tree, its able to pickup items and add them to its UIS default main item collection. The thing I can't do is have it drop it so the player character can pick it up. I've tried the Drop script provided in UCC inventory section but its not working because line
"var item = inventory.GetItem(i, m_ItemType);"
needs an itemIdentifier instead of an int and I can't get it to work. I tried using the ItemDropper script from the UIS and that didn't work. I tried reverse engineering the UCC/UIS integration demo and I'm lost. I don't know what is calling the drop from the inventory.
How can I get a NPC that is using UCC and UIS to drop an item it has picked up on its death?
Thanks!