DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DropEntity()

override bool HumanInventory::DropEntity ( InventoryMode mode,
EntityAI owner,
notnull EntityAI item )
inlineprivate

См. определение в файле HumanInventory.c строка 139

140 {
141 InventoryLocation src = new InventoryLocation();
142 if (item && item.GetInventory() && item.GetInventory().GetCurrentInventoryLocation(src))
143 {
144 switch (src.GetType())
145 {
146 case InventoryLocationType.HANDS:
147 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[inv] HumanInventory::DropEntity(" + typename.EnumToString(InventoryMode, mode) + ") item=" + item);
148 HandEvent(mode, new HandEventDrop(GetManOwner(), src));
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.
Определения Inventory.c:22
void hndDebugPrint(string s)
Определения HandFSM.c:1
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
Man GetManOwner()
Определения HumanInventory.c:102
bool HandEvent(InventoryMode mode, HandEventBase e)
Определения HumanInventory.c:134
proto native int GetType()
returns type of InventoryLocation
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), GetManOwner(), InventoryLocation::GetType(), HandEvent(), hndDebugPrint() и LogManager::IsInventoryHFSMLogEnable().

Используется в EntityAI::DropEntityImpl() и ThrowEntity().