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

◆ LocalDestroyEntity()

override bool HumanInventory::LocalDestroyEntity ( notnull EntityAI item)
inlineprivate

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

373 {
374 InventoryLocation src = new InventoryLocation();
375 if (item.GetInventory().GetCurrentInventoryLocation(src))
376 {
377 switch (src.GetType())
378 {
379 case InventoryLocationType.HANDS:
380 if (GetInventoryOwner().IsAlive())
381 {
382 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[inv] HumanInventory::LocalDestroy inv item=" + item);
383 HandEvent(InventoryMode.LOCAL, new HandEventDestroy(GetManOwner(), src));
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)
Определения HandFSM.c:1
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native EntityAI GetInventoryOwner()
Engine native functions.
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(), GameInventory::GetInventoryOwner(), GetManOwner(), InventoryLocation::GetType(), HandEvent(), hndDebugPrint() и LogManager::IsInventoryHFSMLogEnable().

Используется в CTObjectFollower::SetHandsItem().