Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VehicleBrakeCondition.c
Go to the documentation of this file.
1
4{
5 [Attribute(defvalue: "0.05", uiwidget: UIWidgets.Auto, desc: "Minimum braking to pass this conditon")]
6 protected float m_fMinimumBrake;
7
8 //------------------------------------------------------------------------------------------------
12 {
13 CarControllerComponent controller = CarControllerComponent.Cast(data.GetCurrentVehicleController());
14 if (!controller)
15 return false;
16
17 VehicleWheeledSimulation simulation = controller.GetSimulation();
18 return GetReturnResult(simulation && simulation.GetBrake() >= m_fMinimumBrake);
19 }
20}
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 vehicle's brakes are at least at specified threshold.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute