Arma Reforger Script API
|
Notification Player with target two Factions that are seperate from player Displays a notification: %1 = Player name, %2 = First faction name, %3 = Second faction name SCR_NotificationData: m_iParam1 = PlayerID, m_iParam2 = firstFactionIndex, m_iParam3 = secondFactionIndex Sets the position to player ID if enabled. More...
Public Member Functions | |
override string | GetText (SCR_NotificationData data) |
Returns the display text using the parameters set in SCR_NotificationData. | |
Public Member Functions inherited from SCR_NotificationPlayerTargetFaction | |
override string | GetText (SCR_NotificationData data) |
Returns the display text using the parameters set in SCR_NotificationData. | |
override void | SetPosition (SCR_NotificationData data) |
Set the position of the target entity the SCR_NotificationData. | |
Public Member Functions inherited from SCR_NotificationDisplayData | |
void | SetInitialDisplayData (SCR_NotificationData data) |
Sets the initial display data such as initial notification position and faction related color of notification. | |
void | GetDisplayVisualizationData (SCR_NotificationData data, out SCR_UINotificationInfo info=null, out ENotificationColor colorEnum=ENotificationColor.NEUTRAL) |
Returns the display data. | |
ENotificationColor | GetTextColor (SCR_NotificationData data) |
Returns the display data. | |
void | GetSplitNotificationTextColors (SCR_NotificationData data, out ENotificationColor leftTextColorEnum=ENotificationColor.NEUTRAL, out ENotificationColor rightTextColorEnum=ENotificationColor.NEUTRAL) |
Returns the display data. | |
string | GetText (SCR_NotificationData data) |
Returns the display text using the parameters set in SCR_NotificationData. | |
bool | MergeParam1With2 () |
If true it will merge param1 with param2 using param2 as format (eg: Translate(param2, param1)) before constructing the full notification formatted string. | |
bool | GetPriority () |
Get Priority. | |
SCR_UINotificationInfo | GetNotificationUIInfo () |
Get UI info. | |
bool | GetPosition (SCR_NotificationData data, out vector position) |
Gives a position vector that is linked to the notification. | |
void | SetPosition (SCR_NotificationData data) |
Set the position of the target entity the SCR_NotificationData. | |
void | SetFactionRelatedColor (SCR_NotificationData data) |
Sets the color enum related to faction if SCR_NotificationDisplayData Color is set to: 'FACTION_RELATED_FRIENDLY_IS_NEGATIVE', 'FACTION_RELATED_FRIENDLY_IS_POSITIVE', 'FACTION_RELATED_ENEMY_IS_NEGATIVE_ONLY' or 'FACTION_RELATED_FRIENDLY_IS_POSITIVE_ONLY' and there is a target to check faction of. | |
Additional Inherited Members | |
Public Attributes inherited from SCR_NotificationDisplayData | |
ENotification | m_NotificationKey |
bool | m_bPriorityNotification |
ref SCR_UINotificationInfo | m_info |
Static Public Attributes inherited from SCR_NotificationDisplayData | |
const int | MAX_USERNAME_CHARACTERS = 32 |
Protected Member Functions inherited from SCR_NotificationDisplayData | |
bool | GetPlayerName (int playerID, out string playerName) |
bool | GetEditableEntityName (int entityRplID, out string entityName, bool useCharacterName=false) |
bool | IsPlayerFriendlyToLocalPlayer (int notificationPlayerID, bool friendlyIfNoFaction=false) |
bool | IsEntityFriendlyToLocalPlayer (IEntity notificationEntity, bool friendlyIfNoFaction=false) |
bool | GetFactionName (int factionIndex, out string factionName) |
bool | GetCharacterName (int entityRplID, out string format, out string firstname, out string alias, out string surname) |
bool | GetEntityCallsign (int rplID, out string callsign) |
bool | GetGroupNameFromGroupID (int playerGroupId, out string groupName) |
bool | GetInventoryItemName (RplId rplId, out string itemName) |
bool | CanSetPosition (SCR_NotificationData data) |
void | SetPositionDataEditablePlayer (int playerID, SCR_NotificationData data) |
void | SetPositionDataEditableEntity (int enditableEntityID, SCR_NotificationData data) |
ENotificationColor | GetFactionRelatedColorPlayer (int notificationPlayerID, ENotificationColor colorType) |
ENotificationColor | GetFactionRelatedColorEntity (int notificationEntityID, ENotificationColor colorType) |
bool | AreEntitiesFriendly (int entity1ID, bool entity1IsPlayer, int entity2ID, bool entity2IsPlayer) |
Protected Attributes inherited from SCR_NotificationDisplayData | |
bool | m_bAddFriendlyIndicator |
Static Protected Attributes inherited from SCR_NotificationDisplayData | |
const LocalizedString | FRIENDLY_INDICATOR = "#AR-Notification_FriendlyIndicator" |
String used to indicate friendly entities together with the name eg: (Friendly) [PlayerName]. Used only if m_bAddFriendlyIndicator is true. | |
Notification Player with target two Factions that are seperate from player Displays a notification: %1 = Player name, %2 = First faction name, %3 = Second faction name SCR_NotificationData: m_iParam1 = PlayerID, m_iParam2 = firstFactionIndex, m_iParam3 = secondFactionIndex Sets the position to player ID if enabled.
override string SCR_NotificationPlayerTargetTwoFactions.GetText | ( | SCR_NotificationData | data | ) |
Returns the display text using the parameters set in SCR_NotificationData.
data | SCR_NotificationData to get the parameters |
Implements SCR_NotificationPlayerTargetFaction.