3 [
Attribute(
"0", UIWidgets.ComboBox,
"Role to find:",
"", ParamEnumArray.FromEnum(EUnitRole) )]
4 private EUnitRole m_eUnitRole;
7 protected override bool TestFunction(AIAgent owner)
12 if (!chimeraAgent.m_InfoComponent)
13 NodeError(
this, owner,
"Agent does not have info component!");
14 return chimeraAgent.m_InfoComponent.HasRole(m_eUnitRole);
18 protected override bool VisibleInPalette()
24 protected override string GetOnHoverDescription()
26 return "Decorator that tests if character has requested role";
30 override string GetNodeMiddleText()
32 return "Test " +
typename.EnumToString(EUnitRole,m_eUnitRole);