Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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
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};
ENotification
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
bool GetPlayerName(int playerID, out string playerName)
override string GetText(SCR_NotificationData data)
SCR_FieldOfViewSettings Attribute
T4 param4
Definition tuple.c:152
T3 param3
Definition tuple.c:93
T2 param2
Definition tuple.c:92
T5 param5
Definition tuple.c:153