3 static const string PORT_RECEIVER =
"Receiver";
8 SCR_AIBaseUtilityComponent utilityComp = SCR_AIBaseUtilityComponent.Cast(owner.FindComponent(SCR_AIBaseUtilityComponent));
15 return SCR_AIBehaviorBase.Cast(utilityComp.GetCurrentAction().GetRelatedGroupActivity());
20 protected bool SendMessage(AIAgent owner, AIAgent receiver, AIMessage msg)
22 AICommunicationComponent comms = owner.GetCommunicationComponent();
23 if (!comms || !receiver)
26 return comms.RequestBroadcast(msg, receiver);
30 protected AIAgent GetReceiverAgent(AIAgent owner)
33 if (!GetVariableIn(PORT_RECEIVER, receiver))
40 override bool VisibleInPalette() {
return false; }