1345 {
1346 if (LogManager.IsInventoryMoveLogEnable())
inventoryDebugPrint(
"[inv] I::LocalDestroyEntity inv item=" + item);
1347 InventoryLocation src = new InventoryLocation();
1348 if (item.GetInventory().GetCurrentInventoryLocation(src))
1349 {
1351 Error(
"[inv] Source location == HANDS, player has to handle this");
1352
1354 return true;
1355 }
1356
1357 Error(
"LocalDestroyEntity: No inventory location");
1358 return false;
1359 }
void inventoryDebugPrint(string s)
InventoryLocationType
types of Inventory Location
proto native void ObjectDelete(Object obj)
proto native int GetType()
returns type of InventoryLocation
proto native EntityAI GetItem()
returns item of current inventory location
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.