Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_EngineHitZoneInfo.c
Go to the documentation of this file.
1
class
SCR_EngineHitZoneInfo
:
SCR_HitZoneInfo
2
{
3
protected
CarControllerComponent
m_pCarController
;
4
5
//------------------------------------------------------------------------------------------------
7
override
EVehicleInfoState
GetState
()
8
{
9
EVehicleInfoState
state = super.GetState();
10
11
if
(!
m_pCarController
)
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
30
m_pCarController
=
CarControllerComponent
.Cast(owner.
FindComponent
(
CarControllerComponent
));
31
}
32
};
EVehicleInfoState
EVehicleInfoState
UI indicator state, controlling colors and opacity.
Definition
SCR_BaseVehicleInfo.c:6
CarControllerComponent
Definition
CarControllerComponent.c:13
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_BaseVehicleInfo::m_bIsBlinking
bool m_bIsBlinking
Definition
SCR_BaseVehicleInfo.c:50
SCR_EngineHitZoneInfo
Definition
SCR_EngineHitZoneInfo.c:2
SCR_EngineHitZoneInfo::m_pCarController
CarControllerComponent m_pCarController
Definition
SCR_EngineHitZoneInfo.c:3
SCR_EngineHitZoneInfo::GetState
override EVehicleInfoState GetState()
Can be overridden to get state of actual system or linked to an event.
Definition
SCR_EngineHitZoneInfo.c:7
SCR_EngineHitZoneInfo::DisplayInit
override void DisplayInit(IEntity owner)
Init the UI, runs 1x at the start of the game.
Definition
SCR_EngineHitZoneInfo.c:26
SCR_HitZoneInfo
Definition
SCR_HitZoneInfo.c:5
VehicleWheeledSimulation
Definition
VehicleWheeledSimulation.c:13
scripts
Game
UI
HUD
VehicleInfo
SCR_EngineHitZoneInfo.c
Generated by
1.17.0