3 [
Attribute(
"2", UIWidgets.ComboBox,
"Combat action to test:",
"", ParamEnumArray.FromEnum(EAICombatActions) )]
4 private EAICombatActions m_eCombatActions;
6 protected SCR_AICombatComponent m_CombatComponent;
8 override void OnInit(AIAgent owner)
10 IEntity entity = owner.GetControlledEntity();
13 NodeError(
this, owner,
"Must be run on agent that has an entity!");
16 m_CombatComponent = SCR_AICombatComponent.Cast(entity.FindComponent(SCR_AICombatComponent));
19 protected override bool TestFunction(AIAgent owner)
27 protected override bool VisibleInPalette()
32 protected override string GetOnHoverDescription()
34 return "Decorator that tests allowed type of combat";
37 override string GetNodeMiddleText()
39 return "Test " +
typename.EnumToString(EAICombatActions,m_eCombatActions);