Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EngineHitZoneInfo.c
Go to the documentation of this file.
2{
4
5 //------------------------------------------------------------------------------------------------
8 {
9 EVehicleInfoState state = super.GetState();
10
12 return state;
13
14 if (m_pCarController.GetEngineDrowned())
15 state = EVehicleInfoState.ERROR;
16
17 VehicleWheeledSimulation simulation = m_pCarController.GetSimulation();
18 if (state == EVehicleInfoState.ERROR && simulation && simulation.GetThrottle() > 0.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)
CarControllerComponent m_pCarController
override EVehicleInfoState GetState()
Can be overridden to get state of actual system or linked to an event.
override void DisplayInit(IEntity owner)
Init the UI, runs 1x at the start of the game.