3 [
Attribute(
"0", UIWidgets.ComboBox,
"Control mode to set",
"", ParamEnumArray.FromEnum(EGroupControlMode) )]
4 private EGroupControlMode m_ControlMode;
6 private SCR_AIGroupInfoComponent m_GroupInfo;
8 override void OnInit(AIAgent owner)
10 AIGroup group = AIGroup.Cast(owner);
12 NodeError(
this,owner,
"SCR_AISetGroupControlMode must be run on group AIAgent!");
13 m_GroupInfo = SCR_AIGroupInfoComponent.Cast(group.FindComponent(SCR_AIGroupInfoComponent));
15 NodeError(
this,owner,
"Cannot find Group Info Component!");
19 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
23 return ENodeResult.SUCCESS;
27 override bool VisibleInPalette() {
return true;}
30 protected override string GetOnHoverDescription() {
return "Node sets control mode manually. Should be used only when Waypoint cannot do it by SendGoalMessage!";}
33 protected override string GetNodeMiddleText()
35 return "Control mode: "+
typename.EnumToString(EGroupControlMode,m_ControlMode);