Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HelicopterHoverAction.c
Go to the documentation of this file.
2{
3 //------------------------------------------------------------------------------------------------
4 override void SetState(bool enable)
5 {
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 {
27 }
28};
proto external IEntity GetOwner()
Returns the parent entity of this action.
bool GetState()
Current state of the feature.
CompartmentControllerComponent m_VehicleController