Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ExtendedIdentityComponent Interface Reference
Inheritance diagram for SCR_ExtendedIdentityComponent:
SCR_ExtendedCharacterIdentityComponent

Public Member Functions

int GetRandomizeSeed ()
 Returns the assigned randomize seed of the identity.
 
void RandomizeIdentityServer ()
 Randomize the identity of the entity.
 
SCR_ExtendedIdentity GetExtendedIdentity ()
 Get Extended Identity Holding information from age to place of creation.
 
void OverwriteExtendedIdentity (SCR_ExtendedIdentity newExtendedIdentity)
 Called when a bio is overwriting the extended Identity Note that only values that where set in the new identity will be overwritten on the entity.
 
SCR_IdentityBio GetIdentityBio ()
 Get Identity Bio Bio contains flavor text.
 
void GetBioIndexes (out int bioGroupIndex, out int bioIndex)
 
void AssignBio (int combinedBioIndex)
 Assign given bio using combined bio index.
 
void AssignBio (SCR_IdentityBio identityBio)
 Assign given bio.
 
void SetRandomDayOfCreation (int month=-1)
 Set random day of birth of character.
 
SCR_EIdentityType GetIdentityType ()
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
override void OnPostInit (IEntity owner)
 
override void EOnInit (IEntity owner)
 
void DelayedInit (IEntity owner)
 

Protected Member Functions

void RandomizeIdentityBroadcast (int seed, int combinedBioIndex)
 
void RandomizeIdentity (int combinedBioIndex)
 
void DelayedRandomizeIdentity ()
 
void DeleteRandomizer ()
 
void InitFactionOfOrigin ()
 
void AssignRandomBioServer ()
 Assign random bio (Server Only)
 
void RandomizeAge ()
 Set controlled random age of entity in years.
 
void SetRandomMonthOfCreation ()
 Set random month of birth of character.
 
void RandomizePlaceOfOrigin ()
 

Protected Attributes

SCR_EIdentityType m_eIdentityType
 
ref SCR_ExtendedIdentity m_ExtendedIdentity
 
ref SCR_IdentityBio m_IdentityBio
 
int m_iMinRandomAge
 
int m_iMaxRandomAge
 
bool m_bRandomizeIdentityOnInit
 
int m_iBioGroupIndex = -1
 
int m_iBioIndex = -1
 
int m_RandomizeSeed = -1
 
ref RandomGenerator m_Randomizer
 
bool m_bDelayedInitCalled
 

Member Function Documentation

◆ AssignBio() [1/2]

void SCR_ExtendedIdentityComponent.AssignBio ( int combinedBioIndex)

Assign given bio using combined bio index.

(Local only is not replicated) Will also overwrite any indentity values taken from the bio

Parameters
combinedBioIndexCombined bio group index and bio index

◆ AssignBio() [2/2]

void SCR_ExtendedIdentityComponent.AssignBio ( SCR_IdentityBio identityBio)

Assign given bio.

(Local only is not replicated) Will also overwrite any indentity values taken from the bio

Parameters
identityBioNew bio to assign

Implemented in SCR_ExtendedCharacterIdentityComponent.

◆ AssignRandomBioServer()

void SCR_ExtendedIdentityComponent.AssignRandomBioServer ( )
protected

Assign random bio (Server Only)

◆ DelayedInit()

void SCR_ExtendedIdentityComponent.DelayedInit ( IEntity owner)

◆ DelayedRandomizeIdentity()

void SCR_ExtendedIdentityComponent.DelayedRandomizeIdentity ( )
protected

◆ DeleteRandomizer()

void SCR_ExtendedIdentityComponent.DeleteRandomizer ( )
protected

◆ EOnInit()

override void SCR_ExtendedIdentityComponent.EOnInit ( IEntity owner)

◆ GetBioIndexes()

void SCR_ExtendedIdentityComponent.GetBioIndexes ( out int bioGroupIndex,
out int bioIndex )
Parameters
[out]bioGroupIndexGet Group index
[out]bioIndexGet entry index
Returns
Bio Indexes

◆ GetExtendedIdentity()

SCR_ExtendedIdentity SCR_ExtendedIdentityComponent.GetExtendedIdentity ( )

Get Extended Identity Holding information from age to place of creation.

Returns
Extended Identity

◆ GetIdentityBio()

SCR_IdentityBio SCR_ExtendedIdentityComponent.GetIdentityBio ( )

Get Identity Bio Bio contains flavor text.

Returns
Identity bio

◆ GetIdentityType()

SCR_EIdentityType SCR_ExtendedIdentityComponent.GetIdentityType ( )

◆ GetRandomizeSeed()

int SCR_ExtendedIdentityComponent.GetRandomizeSeed ( )

Returns the assigned randomize seed of the identity.

Returns
Randomize seed

◆ InitFactionOfOrigin()

void SCR_ExtendedIdentityComponent.InitFactionOfOrigin ( )
protected

◆ OnPostInit()

override void SCR_ExtendedIdentityComponent.OnPostInit ( IEntity owner)

◆ OverwriteExtendedIdentity()

void SCR_ExtendedIdentityComponent.OverwriteExtendedIdentity ( SCR_ExtendedIdentity newExtendedIdentity)

Called when a bio is overwriting the extended Identity Note that only values that where set in the new identity will be overwritten on the entity.

Parameters
[in]newExtendedIdentitynew Extended Identity to get values from

Implemented in SCR_ExtendedCharacterIdentityComponent.

◆ RandomizeAge()

void SCR_ExtendedIdentityComponent.RandomizeAge ( )
protected

Set controlled random age of entity in years.

◆ RandomizeIdentity()

void SCR_ExtendedIdentityComponent.RandomizeIdentity ( int combinedBioIndex)
protected

◆ RandomizeIdentityBroadcast()

void SCR_ExtendedIdentityComponent.RandomizeIdentityBroadcast ( int seed,
int combinedBioIndex )
protected

◆ RandomizeIdentityServer()

void SCR_ExtendedIdentityComponent.RandomizeIdentityServer ( )

Randomize the identity of the entity.

(Server only) Will create a seed. Note that it will not clear any identity already set by prefab or script

◆ RandomizePlaceOfOrigin()

void SCR_ExtendedIdentityComponent.RandomizePlaceOfOrigin ( )
protected

◆ RplLoad()

override bool SCR_ExtendedIdentityComponent.RplLoad ( ScriptBitReader reader)

◆ RplSave()

override bool SCR_ExtendedIdentityComponent.RplSave ( ScriptBitWriter writer)

◆ SetRandomDayOfCreation()

void SCR_ExtendedIdentityComponent.SetRandomDayOfCreation ( int month = -1)

Set random day of birth of character.

◆ SetRandomMonthOfCreation()

void SCR_ExtendedIdentityComponent.SetRandomMonthOfCreation ( )
protected

Set random month of birth of character.

Member Data Documentation

◆ m_bDelayedInitCalled

bool SCR_ExtendedIdentityComponent.m_bDelayedInitCalled
protected

◆ m_bRandomizeIdentityOnInit

bool SCR_ExtendedIdentityComponent.m_bRandomizeIdentityOnInit
protected

◆ m_eIdentityType

SCR_EIdentityType SCR_ExtendedIdentityComponent.m_eIdentityType
protected

◆ m_ExtendedIdentity

ref SCR_ExtendedIdentity SCR_ExtendedIdentityComponent.m_ExtendedIdentity
protected

◆ m_iBioGroupIndex

int SCR_ExtendedIdentityComponent.m_iBioGroupIndex = -1
protected

◆ m_iBioIndex

int SCR_ExtendedIdentityComponent.m_iBioIndex = -1
protected

◆ m_IdentityBio

ref SCR_IdentityBio SCR_ExtendedIdentityComponent.m_IdentityBio
protected

◆ m_iMaxRandomAge

int SCR_ExtendedIdentityComponent.m_iMaxRandomAge
protected

◆ m_iMinRandomAge

int SCR_ExtendedIdentityComponent.m_iMinRandomAge
protected

◆ m_Randomizer

ref RandomGenerator SCR_ExtendedIdentityComponent.m_Randomizer
protected

◆ m_RandomizeSeed

int SCR_ExtendedIdentityComponent.m_RandomizeSeed = -1
protected

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