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_HelicopterHoverAction.c
Go to the documentation of this file.
1
class
SCR_HelicopterHoverAction
:
SCR_VehicleActionBase
2
{
3
//------------------------------------------------------------------------------------------------
4
override
void
SetState(
bool
enable)
5
{
6
HelicopterControllerComponent
helicopterControllerComponent =
HelicopterControllerComponent
.Cast(
m_VehicleController
);
7
8
if
(!helicopterControllerComponent)
9
return
;
10
11
helicopterControllerComponent.SetAutohoverEnabled(enable);
12
13
SoundComponent
soundComponent =
SoundComponent
.Cast(
GetOwner
().FindComponent(
SoundComponent
));
14
if
(!soundComponent)
15
return
;
16
17
if
(enable)
18
soundComponent.SoundEvent(
SCR_SoundEvent
.SOUND_AUTOHOVER_ON);
19
else
20
soundComponent.SoundEvent(
SCR_SoundEvent
.SOUND_AUTOHOVER_OFF);
21
}
22
23
//------------------------------------------------------------------------------------------------
24
override
bool
GetState
()
25
{
26
return
HelicopterControllerComponent
.Cast(
m_VehicleController
) &&
HelicopterControllerComponent
.Cast(
m_VehicleController
).GetAutohoverEnabled();
27
}
28
};
BaseUserAction::GetOwner
proto external IEntity GetOwner()
Returns the parent entity of this action.
HelicopterControllerComponent
Definition
HelicopterControllerComponent.c:13
SCR_HelicopterHoverAction
Definition
SCR_HelicopterHoverAction.c:2
SCR_SoundEvent
Definition
SCR_SoundEvent.c:2
SCR_VehicleActionBase
Definition
SCR_VehicleActionBase.c:2
SCR_VehicleActionBase::GetState
bool GetState()
Current state of the feature.
Definition
SCR_VehicleActionBase.c:100
SCR_VehicleActionBase::m_VehicleController
CompartmentControllerComponent m_VehicleController
Definition
SCR_VehicleActionBase.c:33
SoundComponent
Definition
SoundComponent.c:13
scripts
Game
UserActions
SCR_HelicopterHoverAction.c
Generated by
1.17.0