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

◆ TakeEntityAsAttachment()

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

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

1178 {
1179 if (LogManager.IsInventoryMoveLogEnable()) inventoryDebugPrint("[inv] I::Take2Att(" + typename.EnumToString(InventoryMode, mode) + ") item=" + item);
1180 return TakeEntityToInventory(mode, FindInventoryLocationType.ATTACHMENT, item);
1181 }
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 TakeEntityToInventory(InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item)
Put item anywhere into this entity (as attachment or into cargo, recursively)

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

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