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

◆ LocalDestroyEntity()

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

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

436 {
437 InventoryLocation src = new InventoryLocation();
438 if (item.GetInventory().GetCurrentInventoryLocation(src))
439 {
440 switch (src.GetType())
441 {
442 case InventoryLocationType.HANDS:
443 if (GetInventoryOwner().IsAlive())
444 {
445 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[inv] HumanInventory::LocalDestroy inv item=" + item);
446 HandEvent(InventoryMode.LOCAL, new HandEventDestroy(GetManOwner(), src));
447 return true;
448 }
449
450 return super.LocalDestroyEntity(item);
451
452 default:
453 return super.LocalDestroyEntity(item);
454 }
455 }
456
457 Error("LocalDestroyEntity: No inventory location");
458 return false;
459 }
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().