4 static private string THRESHOLD_PORT =
"ThresholdIn";
6 SCR_AIInfoComponent m_InfoComponent;
8 [
Attribute(
"1", UIWidgets.ComboBox,
"Threat threshold",
"", ParamEnumArray.FromEnum(EAIThreatState) )]
9 private EAIThreatState m_threatThreshold;
12 protected override void OnInit(AIAgent owner)
17 m_InfoComponent = chimeraAgent.m_InfoComponent;
21 protected override bool TestFunction(AIAgent owner)
28 EAIThreatState threshold;
29 if (!GetVariableIn(THRESHOLD_PORT,threshold))
30 threshold = m_threatThreshold;
32 return threshold < m_InfoComponent.GetThreatState();
36 protected override string GetOnHoverDescription()
38 return "Returns true if current threat state is higher than given threshold.";
42 override protected string GetNodeMiddleText()
44 return "Threshold: " +
typename.EnumToString(EAIThreatState,m_threatThreshold);
48 protected static ref TStringArray s_aVarsIn = {
51 protected override TStringArray GetVariablesIn()