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