Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HandBrakeInfo.c
Go to the documentation of this file.
2{
4
5 //------------------------------------------------------------------------------------------------
8 {
10 return EVehicleInfoState.DISABLED;
11
12 EVehicleInfoState state = EVehicleInfoState.DISABLED;
13 m_bIsBlinking = false;
14 if (m_pCarController.GetHandBrake() || m_pCarController.GetPersistentHandBrake())
15 {
16 VehicleWheeledSimulation simulation = m_pCarController.GetSimulation();
17 if (m_pCarController.IsEngineOn() && simulation && simulation.GetSpeedKmh() > 1)
18 state = EVehicleInfoState.WARNING;
19 else
20 state = EVehicleInfoState.ENABLED;
21 }
22
23 return state;
24 }
25
26 //------------------------------------------------------------------------------------------------
28 override void DisplayInit(IEntity owner)
29 {
30 super.DisplayInit(owner);
31
33 }
34};
EVehicleInfoState
UI indicator state, controlling colors and opacity.
proto external Managed FindComponent(typename typeName)
Base class for all vehicle UI state and damage indicators.
CarControllerComponent m_pCarController
override void DisplayInit(IEntity owner)
Init the UI, runs 1x at the start of the game.
override EVehicleInfoState GetState()
Can be overridden to get state of actual system or linked to an event.