Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VehicleSpeedCondition.c
Go to the documentation of this file.
1
4{
5 [Attribute(defvalue: SCR_ComparerOperator.GREATER_THAN.ToString(), desc: "Condition operator", uiwidget: UIWidgets.ComboBox, enumType: SCR_ComparerOperator)]
7
8 [Attribute("2", UIWidgets.EditBox, "Speed compare value\n[km/h]", "")]
9 protected float m_fValue;
10
12 protected int m_iSpeedID = -1;
13 protected const string SIGNAL_NAME = "speed";
14
15 //------------------------------------------------------------------------------------------------
19 {
20 SignalsManagerComponent signals = data.GetCurrentVehicleSignals();
21 if (!signals || m_Signals != signals)
22 {
23 m_Signals = signals;
24 m_iSpeedID = -1;
25 return false;
26 }
27
28 if (m_iSpeedID == -1)
29 m_iSpeedID = signals.AddOrFindSignal(SIGNAL_NAME);
30
31 return GetReturnResult(m_iSpeedID != -1 && SCR_Comparer<int>.Compare(m_eOperator, signals.GetSignalValue(m_iSpeedID), (int)m_fValue));
32 }
33}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_ComparerOperator
Definition SCR_Comparer.c:3
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_VONRadialDisplay Compare
A single available action condition representation.
Returns true if current vehicle speed matches the condition.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SignalsManagerComponent m_Signals
SCR_FieldOfViewSettings Attribute