Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationTaskNameAndGroupName.c
Go to the documentation of this file.
1
8{
9 //------------------------------------------------------------------------------------------------
10 override string GetText(SCR_NotificationData data)
11 {
12 SCR_ETaskNotification taskNotification;
13 SCR_ETaskNotificationMsg taskNotificationMsg;
14 int factionId;
15 int baseCallsign;
16 int groupID;
17 data.GetParams(taskNotification, taskNotificationMsg, factionId, baseCallsign, groupID);
18
19 string taskName = GetTaskName(taskNotification, taskNotificationMsg, factionId, baseCallsign, 0);
20 string groupName;
21
22 if (!GetGroupNameFromGroupID(groupID, groupName) || taskName.IsEmpty())
23 return string.Empty;
24
25 data.SetNotificationTextEntries(taskName, groupName);
26 return super.GetText(data);
27 }
28}
ENotification
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
string GetText()
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
SCR_ETaskNotification
Objective and request notifications types.
SCR_ETaskNotificationMsg
Various types of task notifications for different events and states.
Get all prefabs that have the spawner data
bool GetGroupNameFromGroupID(int playerGroupId, out string groupName)
string GetTaskName(SCR_ETaskNotification taskNotification, SCR_ETaskNotificationMsg taskNotificationMsg, int factionId, int baseCallsign, int grid)