5class SCR_RequestedTaskNotificationComponent : SCR_TaskNotificationComponent
13 SCR_BaseRequestedTaskEntity requestedTask = SCR_BaseRequestedTaskEntity.Cast(
task);
22 if (!playerTransceiver)
25 array<SCR_AIGroup> playableGroups =
m_GroupsManager.GetPlayableGroupsByFaction(faction);
29 int baseCallsign = SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN;
30 SCR_CampaignMilitaryBaseTaskEntity baseTask = SCR_CampaignMilitaryBaseTaskEntity.Cast(
GetOwner());
31 if (baseTask && baseTask.GetMilitaryBase())
32 baseCallsign = baseTask.GetMilitaryBase().GetCallsign();
34 bool isCreatedByCommander = faction.IsPlayerCommander(byPlayerID);
48 if (isCreatedByCommander && group.GetGroupRole() ==
SCR_EGroupRole.COMMANDER)
52 if (isCreatedByGroupLeader && group.GetGroupRole() ==
SCR_EGroupRole.COMMANDER)
58 if (!
task.IsTaskAssignedTo(groupExecutor))
75 SCR_BaseRequestedTaskEntity requestedTask = SCR_BaseRequestedTaskEntity.Cast(
task);
83 array<SCR_AIGroup> playableGroups =
m_GroupsManager.GetPlayableGroupsByFaction(faction);
88 if (!newAssignedGroupExecutor)
91 SCR_PlayerControllerGroupComponent playerGroupComponent = SCR_PlayerControllerGroupComponent.GetPlayerControllerComponent(requesterID);
92 if (!playerGroupComponent)
95 int requesterGroupId = playerGroupComponent.
GetGroupID();
98 if (!newAssignedGroup)
105 int baseCallsign = SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN;
106 SCR_CampaignMilitaryBaseTaskEntity baseTask = SCR_CampaignMilitaryBaseTaskEntity.Cast(
GetOwner());
107 if (baseTask && baseTask.GetMilitaryBase())
108 baseCallsign = baseTask.GetMilitaryBase().GetCallsign();
110 if (faction.IsPlayerCommander(requesterID))
128 if (
task.IsTaskAssignedTo(groupExecutor))
130 if (group.IsPlayerLeader(requesterID))
133 if (playerTransceiver)
148 if (playerTransceiver)
165 SCR_BaseRequestedTaskEntity requestedTask = SCR_BaseRequestedTaskEntity.Cast(
task);
169 array<SCR_AIGroup> playableGroups =
m_GroupsManager.GetPlayableGroupsByFaction(faction);
177 int baseCallsign = SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN;
178 SCR_CampaignMilitaryBaseTaskEntity baseTask = SCR_CampaignMilitaryBaseTaskEntity.Cast(
GetOwner());
179 if (baseTask && baseTask.GetMilitaryBase())
180 baseCallsign = baseTask.GetMilitaryBase().GetCallsign();
201 else if (
task.IsTaskAssignedTo(groupExecutor))
213 if (requestedTask.GetRequesterId() == group.GetGroupID())
void SendMessageToGroup(SCR_ETaskNotification notificationType, SCR_ETaskNotificationMsg msgType, int callerPlayerId, BaseTransceiver transmitter, SCR_AIGroup receiverGroup, int baseCallsign=SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN, int callerGroupId=-1, int calledGroupId=-1, int gridX=-1, int gridY=-1)