3 protected bool m_bAbortDone;
6 protected override bool VisibleInPalette()
12 protected override bool CanReturnRunning()
18 protected override void OnEnter(AIAgent owner)
24 protected override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
26 return ENodeResult.RUNNING;
30 protected override void OnAbort(AIAgent owner, Node nodeCausingAbort)
34 IEntity ent = owner.GetControlledEntity();
37 NodeError(
this, owner,
"Abort called on AIAgent without entity. Invalid usage.");
39 CharacterControllerComponent cc = CharacterControllerComponent.Cast(ent.FindComponent(CharacterControllerComponent));
40 if (cc && cc.IsLeaning())
42 cc.SetWantedLeaning(0);
48 override static string GetOnHoverDescription()
50 return "Clears leaning state of owner entity OnAbort";