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

◆ FindAttachmentBySlotName()

EntityAI Entity::FindAttachmentBySlotName ( string slot_name)
inlineprotected

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

1809 {
1810 if (g_Game && GetInventory())
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 }
DayZGame g_Game
Определения DayZGame.c:3868
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)

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