Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationPlayerTargetTwoEditableEntity.c
Go to the documentation of this file.
1
9{
10 [Attribute("0", desc: "If true will get target Character name (first, alias and surname) if the entity is a NPC otherwise will get the entity type name eg: Rifleman")]
12
13 [Attribute("0", desc: "If true will get target Character name (first, alias and surname) if the entity is a NPC otherwise will get the entity type name eg: Rifleman")]
15
17 {
18 int playerID, firstTargetID, secondTargetID;
19 data.GetParams(playerID, firstTargetID, secondTargetID);
20
21 string playerName, firstEntityName, secondEntityName;
22 data.GetNotificationTextEntries(playerName, firstEntityName, secondEntityName);
23 if (!GetPlayerName(playerID, playerName) || !GetEditableEntityName(firstTargetID, firstEntityName, m_bGetTargetOneCharacterName) || !GetEditableEntityName(secondTargetID, secondEntityName, m_bGetTargetTwoCharacterName))
24 return string.Empty;
25
26 data.SetNotificationTextEntries(playerName, firstEntityName, secondEntityName);
27 return super.GetText(data);
28 }
29
30 //~ Sets position to first target
32 {
33 if (!CanSetPosition(data))
34 return;
35
36 int playerID, firstTargetID;
37 data.GetParams(playerID, firstTargetID);
38 SetPositionDataEditableEntity(firstTargetID, data);
39 }
40};
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
void SetPositionDataEditableEntity(int enditableEntityID, SCR_NotificationData data)
bool GetPlayerName(int playerID, out string playerName)
bool GetEditableEntityName(int entityRplID, out string entityName, bool useCharacterName=false)
bool CanSetPosition(SCR_NotificationData data)
SCR_FieldOfViewSettings Attribute