Put item into into cargo of another entity.
moves item to cargo of this intentory
- Аргументы
-
| [in] | mode | inventory mode |
| [in] | item | item to be put in this inventory as cargo |
См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 1077
1078 {
1079 if (LogManager.IsInventoryMoveLogEnable())
inventoryDebugPrint(
"[inv] I::Take2TargetCgo(" +
typename.EnumToString(
InventoryMode, mode) +
") item=" + item +
"to cargo of target=" + target);
1081 }
void inventoryDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
FindInventoryLocationType
flags for searching locations in inventory
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().