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

◆ LocalDestroyEntity()

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

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

426 {
427 InventoryLocation src = new InventoryLocation();
428 if (item.GetInventory().GetCurrentInventoryLocation(src))
429 {
430 switch (src.GetType())
431 {
432 case InventoryLocationType.HANDS:
433 if (GetInventoryOwner().IsAlive())
434 {
435 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[inv] HumanInventory::LocalDestroy inv item=" + item);
436 HandEvent(InventoryMode.LOCAL, new HandEventDestroy(GetManOwner(), src));
437 return true;
438 }
439
440 return super.LocalDestroyEntity(item);
441
442 default:
443 return super.LocalDestroyEntity(item);
444 }
445 }
446
447 Error("LocalDestroyEntity: No inventory location");
448 return false;
449 }
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
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().

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