10 override void CreateConditionComponents()
16 override typename GetInputType()
21 override bool HasTarget()
32 Transport trans = vehCommand.GetTransport();
36 if (
Class.CastTo(car, trans) )
40 if ( !car.IsScriptedLightsOn() )
44 if ( car.IsVitalCarBattery() ) neededItem = car.FindAttachmentBySlotName(
"CarBattery");
45 if ( car.IsVitalTruckBattery() ) neededItem = car.FindAttachmentBySlotName(
"TruckBattery");
47 if (neededItem && !neededItem.IsRuined())
49 return neededItem.GetCompEM() && neededItem.GetCompEM().GetEnergy() > 0;
64 override void OnExecuteServer(
ActionData action_data )
69 Transport trans = vehCommand.GetTransport();
73 if (
Class.CastTo(car, trans) )
75 car.ToggleHeadlights();
81 override bool CanBeUsedInVehicle()