140 {
141 InventoryLocation src = new InventoryLocation();
142 if (item && item.GetInventory() && item.GetInventory().GetCurrentInventoryLocation(src))
143 {
145 {
147 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::DropEntity(" +
typename.EnumToString(
InventoryMode, mode) +
") item=" + item);
149 return true;
150
151 default:
152 return super.DropEntity(mode, owner, item);
153 }
154 }
155
156 Error(
"No inventory location");
157 return false;
158 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void hndDebugPrint(string s)
InventoryLocationType
types of Inventory Location
bool HandEvent(InventoryMode mode, HandEventBase e)
proto native int GetType()
returns type of InventoryLocation
void Error(string err)
Messagebox with error message.