Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_CharacterIdentityComponent Interface Reference
Inheritance diagram for SCR_CharacterIdentityComponent:
CharacterIdentityComponent GameComponent

Public Member Functions

void GetFormattedFullName (out string format, out string name, out string alias, out string surname)
 Get full name with formatting.
 
void GetFormattedFullName (out string format, out notnull array< string > names)
 Get full name with formatting.
 
- Public Member Functions inherited from CharacterIdentityComponent
proto external IEntity GetHeadEntity ()
 
proto external void SetHeadAlpha (int a)
 
proto external void SetVisibleAll (bool visible)
 
proto external bool SetWoundState (string bodyPart, bool wound)
 
proto external bool IsCovered (string bodyPart)
 Check if bodypart is covered.
 
proto external void CommitChanges ()
 
proto external Identity GetIdentity ()
 Get identity of this character.
 
proto external bool CheckIdentityIDs (int alias, int name, int surname, int soundIdentity, int visualIdentity)
 Check if given IDs are within bounds of existing identities in the current faction assigned to the owner.
 
proto external bool SetIdentityFromIDs (int alias, int name, int surname, int soundIdentity, int visualIdentity)
 This will change identity to given ids defined in characters faction -> factionIdentity.
 
proto external void SetIdentity (Identity cfg)
 Set the identity to the player, and replicates the identity to clients.
 
void OnBodyPartStateChanged (string bodyPart, bool visible, bool wounded)
 
- Public Member Functions inherited from GameComponent
bool OnTicksOnRemoteProxy ()
 

Protected Attributes

LocalizedString m_IdentityFormatFull
 
LocalizedString m_IdentityFormatNoAlias
 

Member Function Documentation

◆ GetFormattedFullName() [1/2]

void SCR_CharacterIdentityComponent.GetFormattedFullName ( out string format,
out notnull array< string > names )

Get full name with formatting.

Alias might be empty but it is handeled in formatting

Parameters
[out]formatEither includes or leaves out Alias
[out]namesWill have an entry for name, alias and surname. Alias can be an empty string

◆ GetFormattedFullName() [2/2]

void SCR_CharacterIdentityComponent.GetFormattedFullName ( out string format,
out string name,
out string alias,
out string surname )

Get full name with formatting.

Alias might be empty but it is handeled in formatting

Parameters
[out]formatEither includes or leaves out Alias
[out]nameFirst name of character (%1 in formatting)
[out]aliasAlias of character (%2 in formatting) might be empty
[out]surnameSurname of Character (%3 in formatting)

Member Data Documentation

◆ m_IdentityFormatFull

LocalizedString SCR_CharacterIdentityComponent.m_IdentityFormatFull
protected

◆ m_IdentityFormatNoAlias

LocalizedString SCR_CharacterIdentityComponent.m_IdentityFormatNoAlias
protected

The documentation for this interface was generated from the following file: