663 {
664 super.EEItemAttached(item, slot_name);
665
666 switch (slot_name)
667 {
668 case "Reflector_1_1":
670 {
671 SetHealth("Reflector_1_1", "Health", item.GetHealth());
672 }
673 break;
674 case "Reflector_2_1":
676 {
677 SetHealth("Reflector_2_1", "Health", item.GetHealth());
678 }
679 break;
680 case "CarBattery":
681 case "TruckBattery":
683 {
685 }
686 break;
687 case "SparkPlug":
688 case "GlowPlug":
690 {
692 }
693 break;
694 case "CarRadiator":
696 {
698 }
699
701 break;
702 }
703
705 {
707 }
708
711 }
void UpdateLights(int new_gear=-1)
void UpdateHeadlightState()
proto native CGame GetGame()