Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationTaskStateChanged.c
Go to the documentation of this file.
3{
4 override string GetText(SCR_NotificationData data)
5 {
6 int taskID, factionID;
7 data.GetParams(taskID, factionID);
8
10 if (!entity)
11 return m_info.GetName();
12
13 SCR_EditorTask task = SCR_EditorTask.Cast(entity.GetOwner());
14 if (!task)
15 return m_info.GetName();
16
17 FactionManager factionManager = GetGame().GetFactionManager();
18 if (!factionManager)
19 return m_info.GetName();
20
21 Faction faction = factionManager.GetFactionByIndex(factionID);
22 if (!faction)
23 return m_info.GetName();
24
25 data.SetNotificationTextEntries(task.GetLocationName(), entity.GetDisplayName(), faction.GetUIInfo().GetName());
26 return super.GetText(data);
27 }
28
29 override void SetPosition(SCR_NotificationData data)
30 {
31 if (!CanSetPosition(data))
32 return;
33
34 int taskID, factionID;
35 data.GetParams(taskID, factionID);
36
38 }
39
40 override bool MergeParam1With2()
41 {
42 return true;
43 }
44};
ENotification
ArmaReforgerScripted GetGame()
Definition game.c:1398
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
Main replication API.
Definition Replication.c:14
void SetPositionDataEditableEntity(int enditableEntityID, SCR_NotificationData data)
bool CanSetPosition(SCR_NotificationData data)