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

◆ CheckVitalItem() [1/2]

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

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

2514 {
2515 GameInventory inventory = GetInventory();
2516 if ( !isVital || !inventory )
2517 return;
2518
2519 EntityAI item = inventory.FindAttachment(slotId);
2520
2521 if (!item || item.IsRuined())
2522 {
2523 EngineStop();
2524 }
2525 }
class LogManager EntityAI
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)

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

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