3 protected static const string TARGET_INFO_PORT =
"TargetInfoOut";
5 protected static const string BASE_TARGET =
"BaseTargetIn";
7 protected ref TStringArray s_aVarsOut = {TARGET_INFO_PORT};
8 protected ref TStringArray s_aVarsIn = {BASE_TARGET};
9 override TStringArray GetVariablesIn() {
return s_aVarsIn; }
10 override TStringArray GetVariablesOut() {
return s_aVarsOut; }
11 ref SCR_AITargetInfo m_TargetInfo;
13 override bool VisibleInPalette() {
return true; }
15 override string GetOnHoverDescription() {
return "Converts baseTarget object instance to SCR_AITarget info object instance"; };
18 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
22 if (!GetVariableIn(BASE_TARGET, baseTarget))
23 return NodeError(
this, owner,
"No base target provided!");
24 m_TargetInfo =
new SCR_AITargetInfo();
25 m_TargetInfo.InitFromBaseTarget(baseTarget);
26 SetVariableOut(TARGET_INFO_PORT, m_TargetInfo);
27 return ENodeResult.SUCCESS;