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

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
protected

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

524 {
525 super.EEItemAttached(item, slot_name);
526
527 switch (slot_name)
528 {
529 case "Reflector_1_1":
530 if (g_Game.IsServer())
531 {
532 SetHealth("Reflector_1_1", "Health", item.GetHealth());
533 }
534 break;
535 case "CarBattery":
536 case "TruckBattery":
537 if (g_Game.IsServer())
538 {
539 m_BatteryHealth = item.GetHealth01();
540 }
541 break;
542 case "SparkPlug":
543 case "GlowPlug":
544 if (g_Game.IsServer())
545 {
546 m_PlugHealth = item.GetHealth01();
547 }
548 break;
549 }
550
551 if (g_Game.IsServer())
552 {
553 HandleHeatComfortOverrides(slot_name, item);
554 Synchronize();
555 }
556
558 UpdateLights();
559 }
void Synchronize()
Определения CombinationLock.c:205
DayZGame g_Game
Определения DayZGame.c:4074
override void UpdateLights(int new_gear=-1)
Определения MotorbikeScript.c:1080
float m_BatteryHealth
Определения MotorbikeScript.c:66
void HandleHeatComfortOverrides(string slotName, notnull EntityAI item, bool detach=false)
float m_PlugHealth
Определения MotorbikeScript.c:67
void UpdateHeadlightState()
Определения MotorbikeScript.c:1049

Перекрестные ссылки g_Game, HandleHeatComfortOverrides(), m_BatteryHealth, m_PlugHealth, Synchronize(), UpdateHeadlightState() и UpdateLights().