40 if (!
car.IsScriptedLightsOn())
44 if (
car.IsVitalCarBattery())
neededItem =
car.FindAttachmentBySlotName(
"CarBattery");
45 if (
car.IsVitalTruckBattery())
neededItem =
car.FindAttachmentBySlotName(
"TruckBattery");
70 car.ToggleHeadlights();
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionSwitchLights()
override bool CanBeUsedInVehicle()
override bool HasTarget()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateConditionComponents()
override void OnExecuteServer(ActionData action_data)
Super root of all classes in Enforce script.
Base native class for all motorized wheeled vehicles.
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.