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

◆ TakeEntityToTargetCargo()

bool GameInventory::TakeEntityToTargetCargo ( InventoryMode mode,
notnull EntityAI target,
notnull EntityAI item )
inlineprotected

Put item into into cargo of another entity.

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

1087 {
1088 if (LogManager.IsInventoryMoveLogEnable()) inventoryDebugPrint("[inv] I::Take2TargetCgo(" + typename.EnumToString(InventoryMode, mode) + ") item=" + item + "to cargo of target=" + target);
1089 return TakeEntityToTargetInventory(mode, target, FindInventoryLocationType.CARGO, item);
1090 }
void inventoryDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
bool TakeEntityToTargetInventory(InventoryMode mode, notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
helper that finds location first, then moves the entity into it

Перекрестные ссылки inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable() и TakeEntityToTargetInventory().