Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VehicleAltitudeAGLCondition.c
Go to the documentation of this file.
1
4{
5 protected const string ALTITUDE_AGL_SIGNAL = "altitudeAGL";
6
7 [Attribute(defvalue: "3", desc: "Minimum altitude AGL\n[m]", params: "0 10000 0.1", precision: 1)]
8 protected float m_fAltitudeAGL;
9
11 protected int m_iAltitudeAGLID = -1;
12
13 //------------------------------------------------------------------------------------------------
17 {
18 SignalsManagerComponent signals = data.GetCurrentVehicleSignals();
19 if (!signals || m_Signals != signals)
20 {
21 m_Signals = signals;
23 return false;
24 }
25
26 if (m_iAltitudeAGLID == -1)
27 m_iAltitudeAGLID = signals.AddOrFindSignal(ALTITUDE_AGL_SIGNAL);
28
29 return GetReturnResult(m_iAltitudeAGLID != -1 && signals.GetSignalValue(m_iAltitudeAGLID) >= m_fAltitudeAGL);
30 }
31}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
A single available action condition representation.
Returns true if current vehicle speed matches the condition.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute