Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VehicleLightsCondition.c
Go to the documentation of this file.
1
4{
5 [Attribute(defvalue: ELightType.NoLight.ToString(), desc: "Light Type", uiwidget: UIWidgets.SearchComboBox, enumType: ELightType)]
6 ELightType m_eLightType;
7
9 [Attribute("-1", uiwidget: UIWidgets.ComboBox, enums: {ParamEnum("Either", "-1"), ParamEnum("Left", "0"), ParamEnum("Right", "1")})]
10 protected int m_iLightSide;
11
12 //------------------------------------------------------------------------------------------------
14 {
15 VehicleControllerComponent controller = VehicleControllerComponent.Cast(data.GetCurrentVehicleController());
16 if (!controller)
17 return false;
18
19 BaseLightManagerComponent lightManager = controller.GetLightManager();
20 if (!lightManager)
21 return false;
22
23 bool result = lightManager.GetLightsState(m_eLightType, m_iLightSide);
24 return GetReturnResult(result);
25 }
26}
ELightType
Definition ELightType.c:8
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
A single available action condition representation.
Returns true if current vehicle lights are enabled.
int m_iLightSide
Side of turn signals.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute