Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_UniquePlayerIdentityBioGroupConfig.c
Go to the documentation of this file.
1//~ Unique Identity Group which only allows the Identity to be assigned to players that have the unique Identity ID
2//~ This is for modders to use if they want a group of people to always have a specific identity (Such as admins) or specific players to have a specific identity always.
3//~ Todo: Currently you have to create a whole new identity group in order to add a single unique player which is not ideal
4[BaseContainerProps(configRoot: true), BaseContainerCustomDoubleTitleField("m_sBioGroupID", "m_iWeight")]
6{
7 [Attribute(desc: "Unique Player UID which will be used for randomization. This is not the player ID but the the player UID obtained via BackendApi", category: "Requirements")]
8 protected ref array<UUID> m_aValidUniquePlayerUIDs;
9
10 override bool IsValidForRandomization(IEntity entity, SCR_ExtendedIdentityComponent extendedIdentity)
11 {
12 SCR_ExtendedCharacterIdentityComponent extendedCharIdentity = SCR_ExtendedCharacterIdentityComponent.Cast(extendedIdentity);
13 if (!extendedCharIdentity)
14 return false;
15
16 if (extendedCharIdentity.GetPlayerID() <= 0)
17 return false;
18
19 //~ Check if the character is on the unique character list
20 if (!m_aValidUniquePlayerUIDs.Contains(SCR_PlayerIdentityUtils.GetPlayerIdentityId(extendedCharIdentity.GetPlayerID())))
21 return false;
22
23 return super.IsValidForRandomization(entity, extendedCharIdentity);
24
25 }
26}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_FactionHomeTerritoryConfig BaseContainerCustomDoubleTitleField("m_sID", "m_iWeight")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
override bool IsValidForRandomization(IEntity entity, SCR_ExtendedIdentityComponent extendedIdentity)
SCR_FieldOfViewSettings Attribute