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

◆ FindAttachmentBySlotName()

EntityAI Entity::FindAttachmentBySlotName ( string slot_name)
inlineprotected

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

1898 {
1899 GameInventory inventory = GetInventory();
1900 if (g_Game && inventory)
1901 {
1902 int slot_id = InventorySlots.GetSlotIdFromString(slot_name);
1903 if (slot_id != InventorySlots.INVALID)
1904 return inventory.FindAttachment(slot_id);
1905 }
1906 return null;
1907 }
DayZGame g_Game
Определения DayZGame.c:4074
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.