3 static const string SMART_ACTION_PORT =
"SmartActionIn";
4 static const string OWNER_PORT =
"OwnerAgentIn";
7 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
12 if (!GetVariableIn(SMART_ACTION_PORT, smartActionComponent))
13 return NodeError(
this, owner,
"No smartaction to reserve!");
14 if (!GetVariableIn(OWNER_PORT, ownerAgent))
17 smartActionComponent.ReserveAction(ownerAgent);
18 return ENodeResult.SUCCESS;
22 protected static ref TStringArray s_aVarsIn = {
28 override TStringArray GetVariablesIn()
34 override bool VisibleInPalette()
40 override string GetOnHoverDescription()
42 return "SetSmartActionInaccessible: makes the smart action reserved for other AIs, it is released when performActionBehavior completes/ fails.";