4 private bool m_bLookAllowed;
8 override void OnEnter(AIAgent owner)
10 SCR_AIUtilityComponent utility = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
15 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
18 return ENodeResult.FAIL;
23 m_bLookAllowed =
true;
27 return ENodeResult.RUNNING;
29 return ENodeResult.SUCCESS;
33 override void OnAbort(AIAgent owner, Node nodeCausingAbort)
37 m_bLookAllowed =
false;
44 protected override bool VisibleInPalette() {
return true;}
47 override bool CanReturnRunning() {
return true;}
50 protected override string GetOnHoverDescription() {
return "Node that allows free look of AI unit and disallows it on abort.";}