3 [
Attribute(
"0", UIWidgets.EditBox,
desc:
"State of inspecting the weapon",
"")]
4 protected float m_fInspectionState;
6 [
Attribute(
"0", UIWidgets.CheckBox,
desc:
"Stop inspecting the weapon",
"")]
7 protected bool m_bStopInspecting;
10 protected bool m_bAborted;
13 override void OnInit(AIAgent owner)
19 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
22 return ENodeResult.FAIL;
24 BaseWeaponManagerComponent pWpnManager =
m_Controller.GetWeaponManagerComponent();
26 return ENodeResult.FAIL;
30 return ENodeResult.FAIL;
32 IEntity pWpnEnt = pWpn.GetOwner();
34 return ENodeResult.FAIL;
36 if (!m_bStopInspecting)
46 return ENodeResult.SUCCESS;
50 override bool VisibleInPalette()
56 protected override string GetNodeMiddleText()
58 if (!m_bStopInspecting)
59 return "Weapon inspect type: " + m_fInspectionState;
61 return "Stop inspecting weapon";
65 override void OnAbort(AIAgent owner, Node nodeCausingAbort)