Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_VehicleLightsCondition.c
Go to the documentation of this file.
1
2
[
BaseContainerProps
()]
3
class
SCR_VehicleLightsCondition
:
SCR_AvailableActionCondition
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
//------------------------------------------------------------------------------------------------
13
override
bool
IsAvailable
(notnull
SCR_AvailableActionsConditionData
data
)
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
ELightType
Definition
ELightType.c:8
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
BaseLightManagerComponent
Definition
BaseLightManagerComponent.c:13
SCR_AvailableActionCondition
A single available action condition representation.
Definition
SCR_AvailableActionCondition.c:4
SCR_AvailableActionCondition::GetReturnResult
bool GetReturnResult(bool desiredResult)
Definition
SCR_AvailableActionCondition.c:22
SCR_AvailableActionsConditionData
Definition
SCR_AvailableActionsConditionData.c:6
SCR_VehicleLightsCondition
Returns true if current vehicle lights are enabled.
Definition
SCR_VehicleLightsCondition.c:4
SCR_VehicleLightsCondition::m_iLightSide
int m_iLightSide
Side of turn signals.
Definition
SCR_VehicleLightsCondition.c:10
SCR_VehicleLightsCondition::IsAvailable
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
Definition
SCR_VehicleLightsCondition.c:13
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Vehicle
SCR_VehicleLightsCondition.c
Generated by
1.17.0