373 {
374 InventoryLocation src = new InventoryLocation();
375 if (item.GetInventory().GetCurrentInventoryLocation(src))
376 {
378 {
381 {
382 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::LocalDestroy inv item=" + item);
384 return true;
385 }
386
387 return super.LocalDestroyEntity(item);
388
389 default:
390 return super.LocalDestroyEntity(item);
391 }
392 }
393
394 Error(
"LocalDestroyEntity: No inventory location");
395 return false;
396 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void hndDebugPrint(string s)
InventoryLocationType
types of Inventory Location
proto native EntityAI GetInventoryOwner()
Engine native functions.
bool HandEvent(InventoryMode mode, HandEventBase e)
proto native int GetType()
returns type of InventoryLocation
void Error(string err)
Messagebox with error message.