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

◆ CanAddEntityInto()

bool GameInventory::CanAddEntityInto ( notnull EntityAI item,
FindInventoryLocationType flags = FindInventoryLocationType.ANY )
inlineprotected

Asks inventory if item could be placed in inventory, hands, etc.

Location is based on the flags parameter. This method is used in methods that are asking for if item can be placed in specific location, like CanAddEntityToInventory, CanAddEntityInHands, etc.

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

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

960 {
961 InventoryLocation loc = new InventoryLocation();
962 return FindFreeLocationFor(item, flags, loc) && !item.IsHologram();
963 }
proto native bool FindFreeLocationFor(notnull EntityAI item, FindInventoryLocationType flags, out notnull InventoryLocation loc)
FindFreeLocationFor.

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

Используется в CanAddEntityIntoHands() и CanAddEntityIntoInventory().