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

◆ TakeEntityToTargetAttachmentImpl()

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

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

828 {
829 InventoryLocation il = new InventoryLocation;
830 if( target.GetInventory().FindFreeLocationFor( item, FindInventoryLocationType.ATTACHMENT, il) )
831 {
832 return TakeEntityToTargetAttachmentExImpl(mode, target, item, il.GetSlot());
833 }
834 return false;
835 }
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
bool TakeEntityToTargetAttachmentExImpl(InventoryMode mode, notnull EntityAI target, notnull EntityAI item, int slot)
Определения 3_Game/DayZ/Entities/Man.c:788
proto native int GetSlot()
returns slot id if current type is Attachment

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

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