3 [
Attribute(
"true", UIWidgets.CheckBox,
"Raise weapon",)]
4 private bool m_bWeaponRaised;
6 static const string RAISED_PORT =
"Raised";
11 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
14 return ENodeResult.FAIL;
17 if(!GetVariableIn(RAISED_PORT,raiseWeapon))
18 raiseWeapon = m_bWeaponRaised;
20 m_AIInfo.SetWeaponRaised(raiseWeapon);
23 return ENodeResult.SUCCESS;
27 override bool VisibleInPalette() {
return true;}
30 protected static ref TStringArray s_aVarsIn = {
33 override array<string> GetVariablesIn()
39 override string GetNodeMiddleText()
42 s = s +
string.Format(
"m_bWeaponRaised: %1\n", m_bWeaponRaised);
47 override void OnInit(AIAgent owner)
51 if(owner.GetControlledEntity())
55 NodeError(
this, owner,
"Can't find SCR_CharacterControllerComponent.");