Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CharacterIdentityComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "GameScripted/Identity", description: "")]
5
6class SCR_CharacterIdentityComponent : CharacterIdentityComponent
7{
8 [Attribute("#AR-Idenity_Name_Format_Full")]
9 protected LocalizedString m_IdentityFormatFull;
10
11 [Attribute("#AR-Idenity_Name_Format_NoAlias")]
12 protected LocalizedString m_IdentityFormatNoAlias;
13
14 //------------------------------------------------------------------------------------------------
20 void GetFormattedFullName(out string format, out string name, out string alias, out string surname)
21 {
22 name = GetIdentity().GetName();
23 alias = GetIdentity().GetAlias();
24 surname = GetIdentity().GetSurname();
25
26 if (alias.IsEmpty())
27 format = m_IdentityFormatNoAlias;
28 else
29 format = m_IdentityFormatFull;
30 }
31
32 //------------------------------------------------------------------------------------------------
36 void GetFormattedFullName(out string format, out notnull array<string> names)
37 {
38 names.Clear();
39
40 string name, alias, surname;
41 GetFormattedFullName(format, name, alias, surname);
42
43 names.Insert(name);
44 names.Insert(alias);
45 names.Insert(surname);
46 }
47}
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
void GetFormattedFullName(out string format, out notnull array< string > names)
proto external Identity GetIdentity()
Get identity of this character.
SCR_FieldOfViewSettings Attribute