Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_HelicopterWheelBrakesCondition.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
3
[
BaseContainerProps
()]
4
class
SCR_HelicopterWheelBrakesCondition
:
SCR_AvailableActionCondition
5
{
6
//------------------------------------------------------------------------------------------------
7
override
bool
IsAvailable(
SCR_AvailableActionsConditionData
data
)
8
{
9
if
(!
data
)
10
return
false
;
11
12
HelicopterControllerComponent controller = HelicopterControllerComponent.Cast(
data
.GetCurrentVehicleController());
13
if
(!controller)
14
return
false
;
15
16
VehicleHelicopterSimulation simulation = VehicleHelicopterSimulation.Cast(controller.GetBaseSimulation());
17
if
(!simulation)
18
return
false
;
19
20
if
(simulation.LandingGearGetType() !=
LandingGearType
.WHEEL)
21
return
false
;
22
23
return
GetReturnResult(controller.GetPersistentWheelBrake());
24
}
25
}
LandingGearType
LandingGearType
Definition:
LandingGearType.c:12
SCR_HelicopterWheelBrakesCondition
Returns true if persistent wheel brakes are available and are enabled.
Definition:
SCR_HelicopterWheelBrakesCondition.c:4
SCR_AvailableActionsConditionData
Definition:
SCR_AvailableActionsConditionData.c:5
SCR_AvailableActionCondition
A single available action condition representation.
Definition:
SCR_AvailableActionsCondition.c:3
data
Get all prefabs that have the spawner data
Definition:
SCR_EntityCatalogManagerComponent.c:305
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Vehicle
SCR_HelicopterWheelBrakesCondition.c
Generated by
1.8.17