3 static const string COMPARTMENT_PORT =
"CompartmentIn";
5 protected bool m_bAbortDone;
8 override void OnEnter(AIAgent owner)
14 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
16 return ENodeResult.RUNNING;
20 override void OnAbort(AIAgent owner, Node nodeCausingAbort)
26 BaseCompartmentSlot compartment;
27 if (!GetVariableIn(COMPARTMENT_PORT, compartment))
29 compartment.SetCompartmentAccessible(
true);
33 protected static ref TStringArray s_aVarsIn = {
37 override TStringArray GetVariablesIn()
42 override bool VisibleInPalette()
47 override string GetOnHoverDescription()
49 return "SetCompartmnetAccessible: makes the compartment accessible by other AIs OnAbort";
52 override bool CanReturnRunning()