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

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
protected

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

663 {
664 super.EEItemAttached(item, slot_name);
665
666 switch (slot_name)
667 {
668 case "Reflector_1_1":
669 if (GetGame().IsServer())
670 {
671 SetHealth("Reflector_1_1", "Health", item.GetHealth());
672 }
673 break;
674 case "Reflector_2_1":
675 if (GetGame().IsServer())
676 {
677 SetHealth("Reflector_2_1", "Health", item.GetHealth());
678 }
679 break;
680 case "CarBattery":
681 case "TruckBattery":
682 if (GetGame().IsServer())
683 {
684 m_BatteryHealth = item.GetHealth01();
685 }
686 break;
687 case "SparkPlug":
688 case "GlowPlug":
689 if (GetGame().IsServer())
690 {
691 m_PlugHealth = item.GetHealth01();
692 }
693 break;
694 case "CarRadiator":
695 if (GetGame().IsServer())
696 {
697 m_RadiatorHealth = item.GetHealth01();
698 }
699
700 m_Radiator = item;
701 break;
702 }
703
704 if (GetGame().IsServer())
705 {
706 Synchronize();
707 }
708
710 UpdateLights();
711 }
float m_BatteryHealth
Определения CarScript.c:172
EntityAI m_Radiator
Определения CarScript.c:175
void UpdateLights(int new_gear=-1)
Определения CarScript.c:1842
float m_PlugHealth
Определения CarScript.c:173
void UpdateHeadlightState()
Определения CarScript.c:714
float m_RadiatorHealth
Определения CarScript.c:170
void Synchronize()
Определения CombinationLock.c:151
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_BatteryHealth, m_PlugHealth, m_Radiator, m_RadiatorHealth, Synchronize(), UpdateHeadlightState() и UpdateLights().