Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_GearboxHitZoneInfo.c
Go to the documentation of this file.
2{
4
5 //------------------------------------------------------------------------------------------------
8 {
9 EVehicleInfoState state = super.GetState();
10
11 if (!m_pCarController || m_pCarController.GetCurrentGear() == 1)
12 return state;
13
14 if (state != EVehicleInfoState.ERROR)
15 return state;
16
17 VehicleWheeledSimulation simulation = m_pCarController.GetSimulation();
18 if (simulation && simulation.GetSpeedKmh() > 1)
19 m_bIsBlinking = true;
20
21 return state;
22 }
23
24 //------------------------------------------------------------------------------------------------
26 override void DisplayInit(IEntity owner)
27 {
28 super.DisplayInit(owner);
29
31 }
32};
EVehicleInfoState
UI indicator state, controlling colors and opacity.
proto external Managed FindComponent(typename typeName)
override void DisplayInit(IEntity owner)
Init the UI, runs 1x at the start of the game.
CarControllerComponent m_pCarController
override EVehicleInfoState GetState()
Can be overridden to get state of actual system or linked to an event.