Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HelicopterWheelBrakesCondition.c
Go to the documentation of this file.
1
4{
5 //------------------------------------------------------------------------------------------------
6 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
7 {
8 HelicopterControllerComponent controller = HelicopterControllerComponent.Cast(data.GetCurrentVehicleController());
9 if (!controller)
10 return false;
11
12 VehicleHelicopterSimulation simulation = VehicleHelicopterSimulation.Cast(controller.GetBaseSimulation());
13 if (!simulation)
14 return false;
15
16 if (simulation.LandingGearGetType() != LandingGearType.WHEEL)
17 return false;
18
19 return GetReturnResult(controller.GetPersistentWheelBrake());
20 }
21}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.
Returns true if persistent wheel brakes are available and are enabled.
LandingGearType