Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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")]
11  protected bool m_bGetTargetOneCharacterName;
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")]
14  protected bool m_bGetTargetTwoCharacterName;
15 
16  override string GetText(SCR_NotificationData data)
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
31  override void SetPosition(SCR_NotificationData data)
32  {
33  if (!CanSetPosition(data))
34  return;
35 
36  int playerID, firstTargetID;
37  data.GetParams(playerID, firstTargetID);
38  SetPositionDataEditableEntity(firstTargetID, data);
39  }
40 };
SCR_NotificationDisplayData
Definition: SCR_NotificationDisplayData.c:7
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
SCR_NotificationPlayerTargetTwoEditableEntity
Definition: SCR_NotificationPlayerTargetTwoEditableEntity.c:8
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
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