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

◆ CheckVitalItem() [1/2]

void Car::CheckVitalItem ( bool isVital,
int slotId )
inlineprotected

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

2953 {
2954 GameInventory inventory = GetInventory();
2955 if ( !isVital || !inventory )
2956 return;
2957
2958 EntityAI item = inventory.FindAttachment(slotId);
2959
2960 if (!item || item.IsRuined())
2961 {
2962 EngineStop();
2963 }
2964 }
class LogManager EntityAI
proto native void EngineStop()
Stops the engine.
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)

Перекрестные ссылки EngineStop() и GameInventory::FindAttachment().

Используется в CheckVitalItem().