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

◆ CanAddEntityToInventory()

bool GameInventory::CanAddEntityToInventory ( notnull EntityAI item,
int flag = FindInventoryLocationType.ANY )
inlineprotected

ask inventory if item could be placed somewhere in inventory

All available inventory locations (hands, cargo, attachments, proxycargo, ...) are traversed recursively from root to leafs.

Аргументы
[in]itemitem to be placed in inventory
Возвращает
true if item can be added, false otherwise

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

905 {
906 InventoryLocation il = new InventoryLocation();
907 bool result = FindFreeLocationFor(item, flag, il);
908 return result;
909 }
proto native bool FindFreeLocationFor(notnull EntityAI item, FindInventoryLocationType flags, out notnull InventoryLocation loc)
FindFreeLocationFor.

Перекрестные ссылки FindFreeLocationFor().