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

◆ FindAttachmentBySlotName()

EntityAI Entity::FindAttachmentBySlotName ( string slot_name)
inlineprotected

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

1848 {
1849 GameInventory inventory = GetInventory();
1850 if (g_Game && inventory)
1851 {
1852 int slot_id = InventorySlots.GetSlotIdFromString(slot_name);
1853 if (slot_id != InventorySlots.INVALID)
1854 return inventory.FindAttachment(slot_id);
1855 }
1856 return null;
1857 }
DayZGame g_Game
Определения DayZGame.c:3942
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(), GameInventory::FindAttachment(), g_Game, GetInventory(), InventorySlots::GetSlotIdFromString() и InventorySlots::INVALID.