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

◆ FindAttachmentBySlotName()

EntityAI Entity::FindAttachmentBySlotName ( string slot_name)
inlineprotected

См. определение в файле EntityAI.c строка 1808

1809 {
1810 if ( GetGame() )
1811 {
1812 int slot_id = InventorySlots.GetSlotIdFromString(slot_name);
1813 if (slot_id != InventorySlots.INVALID)
1814 return GetInventory().FindAttachment(slot_id);
1815 }
1816 return null;
1817 }
proto native GameInventory GetInventory()
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)
proto native CGame GetGame()

Перекрестные ссылки EntityAI(), GetGame(), GetInventory(), InventorySlots::GetSlotIdFromString() и InventorySlots::INVALID.