Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CharacterRegistrationComponent.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/Components", description: "Registers characters and holds them in an array.", color: "0 0 255 255")]
5
7{
8 protected static ref array<SCR_ChimeraCharacter> s_aChimeraCharacters = {};
9
10 protected IEntity m_owner;
11
12 //------------------------------------------------------------------------------------------------
14 static array<SCR_ChimeraCharacter> GetChimeraCharacters()
15 {
17 }
18
19 //------------------------------------------------------------------------------------------------
20 override void OnDelete(IEntity owner)
21 {
23 return;
24
25 SCR_ChimeraCharacter character = SCR_ChimeraCharacter.Cast(owner);
26 if (character && s_aChimeraCharacters.Find(character) != -1)
27 s_aChimeraCharacters.RemoveItem(character);
28 }
29
30 //------------------------------------------------------------------------------------------------
31 override void OnPostInit(IEntity owner)
32 {
33 m_owner = owner;
34
36 return;
37
38 SCR_ChimeraCharacter character = SCR_ChimeraCharacter.Cast(owner);
39 if (character)
40 s_aChimeraCharacters.Insert(character);
41 }
42
43 //------------------------------------------------------------------------------------------------
44 // constructor
51
52 //------------------------------------------------------------------------------------------------
53 // destructor
55 {
56 SCR_ChimeraCharacter character = SCR_ChimeraCharacter.Cast(m_owner);
57 if (character && s_aChimeraCharacters.Find(character) != -1)
58 s_aChimeraCharacters.RemoveItem(character);
59 }
60}
void ~SCR_CharacterRegistrationComponent()
SCR_CharacterRegistrationComponentClass s_aChimeraCharacters
void SCR_CharacterRegistrationComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.