Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationPlayerBuildService.c
Go to the documentation of this file.
1
8{
9 override string GetText(SCR_NotificationData data)
10 {
11 int playerID, entityID, callsignID;
12 data.GetParams(playerID, entityID, callsignID);
13
14 string playerName, entityName;
15 data.GetNotificationTextEntries(playerName, entityName);
16 if (!GetPlayerName(playerID, playerName) || !GetEditableEntityName(entityID, entityName, false))
17 return string.Empty;
18
19 data.SetNotificationTextEntries(playerName, entityName, GetProviderCallsign(callsignID));
20 return super.GetText(data);
21 }
22
23 //------------------------------------------------------------------------------------------------
24 private string GetProviderCallsign(int callsignID)
25 {
26 SCR_GameModeCampaign campaign = SCR_GameModeCampaign.GetInstance();
27
28 if (!campaign)
29 return string.Empty;
30
31 SCR_CampaignMilitaryBaseManager baseManager = campaign.GetBaseManager();
32 if (!baseManager)
33 return string.Empty;
34
36 if (!base)
37 return string.Empty;
38
39 return base.GetCallsignDisplayNameOnly();
40 }
41};
ENotification
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
string GetText()
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Get all prefabs that have the spawner data
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
SCR_CampaignMilitaryBaseComponent FindBaseByCallsign(int callsign)
bool GetPlayerName(int playerID, out string playerName)
bool GetEditableEntityName(int entityRplID, out string entityName, bool useCharacterName=false)