9 [
Attribute(
"2", UIWidgets.EditBox,
"Speed compare value\n[km/h]",
"")]
10 protected float m_fValue;
12 protected SignalsManagerComponent m_Signals;
13 protected int m_iSpeedID = -1;
23 SignalsManagerComponent signals =
data.GetCurrentVehicleSignals();
24 if (!signals || m_Signals != signals)
32 m_iSpeedID = signals.AddOrFindSignal(
"speed");
36 speed = signals.GetSignalValue(m_iSpeedID);
40 result = SCR_Comparer<int>.Compare(m_eOperator, speed, (
int)m_fValue);
41 return GetReturnResult(result);