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

◆ LocalDestroyEntity()

bool GameInventory::LocalDestroyEntity ( notnull EntityAI item)
inlineprotected

См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 1346

1347 {
1348 if (LogManager.IsInventoryMoveLogEnable()) inventoryDebugPrint("[inv] I::LocalDestroyEntity inv item=" + item);
1349 InventoryLocation src = new InventoryLocation();
1350 if (item.GetInventory().GetCurrentInventoryLocation(src))
1351 {
1352 if (src.GetType() == InventoryLocationType.HANDS)
1353 Error("[inv] Source location == HANDS, player has to handle this");
1354
1355 g_Game.ObjectDelete(src.GetItem());
1356 return true;
1357 }
1358
1359 Error("LocalDestroyEntity: No inventory location");
1360 return false;
1361 }
void inventoryDebugPrint(string s)
DayZGame g_Game
Определения DayZGame.c:3942
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation
proto native EntityAI GetItem()
returns item of current inventory location
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), g_Game, InventoryLocation::GetItem(), InventoryLocation::GetType(), inventoryDebugPrint() и LogManager::IsInventoryMoveLogEnable().

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