Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlayerFactionLoadout.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot: true), BaseContainerCustomTitleField("m_sLoadoutName")]
3{
4 [Attribute("", UIWidgets.EditBox, "")]
5 string m_sAffiliatedFaction;
6
7 //------------------------------------------------------------------------------------------------
10 {
11 return m_sAffiliatedFaction;
12 }
13
14 //------------------------------------------------------------------------------------------------
15 ResourceName GetDefaultLoadoutResource()
16 {
17 return m_sLoadoutResource;
18 }
19
20 //------------------------------------------------------------------------------------------------
21 override void OnLoadoutSpawned(GenericEntity pOwner, int playerId)
22 {
23 if (pOwner)
24 {
25 FactionAffiliationComponent comp = FactionAffiliationComponent.Cast(pOwner.FindComponent(FactionAffiliationComponent));
26 if (comp)
27 comp.SetAffiliatedFactionByKey(m_sAffiliatedFaction);
28 }
29 }
30}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
FactionKey GetFactionKey()
proto external Managed FindComponent(typename typeName)
SCR_FieldOfViewSettings Attribute