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

◆ TakeEntityToTargetAttachmentImpl()

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

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

722 {
723 InventoryLocation il = new InventoryLocation;
724 if( target.GetInventory().FindFreeLocationFor( item, FindInventoryLocationType.ATTACHMENT, il) )
725 {
726 return TakeEntityToTargetAttachmentExImpl(mode, target, item, il.GetSlot());
727 }
728 return false;
729 }
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:682
proto native int GetSlot()
returns slot id if current type is Attachment

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

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