Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NotificationPlayerAndNumber.c
Go to the documentation of this file.
1 
10 {
11  [Attribute(defvalue: "1", params: "1 1000", desc: "Notifications can only send int's thus if you want to send a float you will need to send all values the amount of values you want after the dot. eg: 23.05 = * 100 to get 2 values after the dot. You will need to make sure this attribute is the same amount as you multiplied it with")]
12  protected int m_iNumberDivider;
13 
14  override string GetText(SCR_NotificationData data)
15  {
16  int playerID, param2, param3, param4, param5, param6;
17  data.GetParams(playerID, param2, param3, param4, param5, param6);
18 
19  float display2 = param2;
20  display2 = param2 / m_iNumberDivider;
21 
22  float display3 = param3;
23  display3 = param3 / m_iNumberDivider;
24 
25  float display4 = param4;
26  display4 = param4 / m_iNumberDivider;
27 
28  float display5 = param5;
29  display5 = param5 / m_iNumberDivider;
30 
31  float display6 = param6;
32  display5 = param6 / m_iNumberDivider;
33 
34  string playerName;
35  data.GetNotificationTextEntries(playerName);
36  if (!GetPlayerName(playerID, playerName))
37  return string.Empty;
38 
39  data.SetNotificationTextEntries(playerName, display2.ToString(), display3.ToString(), display4.ToString(), display5.ToString(), display6.ToString());
40  return super.GetText(data);
41  }
42 };
SCR_NotificationPlayerAndNumber
Definition: SCR_NotificationPlayerAndNumber.c:9
SCR_NotificationPlayer
Definition: SCR_NotificationPlayer.c:10
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
ENotification
ENotification
Definition: ENotification.c:4
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_NotificationData
Definition: SCR_NotificationData.c:6
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468