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

◆ TakeEntityToTargetAttachmentImpl()

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

См. определение в файле 3_Game/Entities/Man.c строка 811

812 {
813 InventoryLocation il = new InventoryLocation;
814 if( target.GetInventory().FindFreeLocationFor( item, FindInventoryLocationType.ATTACHMENT, il) )
815 {
816 return TakeEntityToTargetAttachmentExImpl(mode, target, item, il.GetSlot());
817 }
818 return false;
819 }
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
bool TakeEntityToTargetAttachmentExImpl(InventoryMode mode, notnull EntityAI target, notnull EntityAI item, int slot)
Определения 3_Game/Entities/Man.c:772
proto native int GetSlot()
returns slot id if current type is Attachment

Перекрестные ссылки InventoryLocation::GetSlot() и TakeEntityToTargetAttachmentExImpl().

Используется в JunctureTakeEntityToTargetAttachment(), LocalTakeEntityToTargetAttachment(), PredictiveTakeEntityToTargetAttachment() и ServerTakeEntityToTargetAttachment().