3 static const string USE_TURRETS_PORT =
"UseTurrets";
4 static const string SEARCH_TAGS_PORT =
"SearchTags";
5 static const string FAST_INIT_PORT =
"FastInit";
7 ref array<string> m_tagsArray;
10 protected static ref TStringArray s_aVarsOut2 = {
18 override TStringArray GetVariablesOut()
24 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
26 if (ENodeResult.FAIL == super.EOnTaskSimulate(owner, dt))
27 return ENodeResult.FAIL;
32 return NodeError(
this, owner,
"Wrong class of provided Waypoint!");
35 m_tagsArray = wp.GetTagsForSearch();
37 SetVariableOut(USE_TURRETS_PORT, wp.GetUseTurrets());
38 SetVariableOut(SEARCH_TAGS_PORT, m_tagsArray);
39 SetVariableOut(FAST_INIT_PORT, wp.GetFastInit());
41 return ENodeResult.SUCCESS;
45 protected override bool VisibleInPalette()
51 protected override string GetOnHoverDescription()
53 return "Returns defend waypoint parameters";