Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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  //------------------------------------------------------------------------------------------------
9  FactionKey GetFactionKey()
10  {
11  return m_sAffiliatedFaction;
12  }
13 
14  //------------------------------------------------------------------------------------------------
15  override void OnLoadoutSpawned(GenericEntity pOwner, int playerId)
16  {
17  if (pOwner)
18  {
19  FactionAffiliationComponent comp = FactionAffiliationComponent.Cast(pOwner.FindComponent(FactionAffiliationComponent));
20  if (comp)
21  comp.SetAffiliatedFactionByKey(m_sAffiliatedFaction);
22  }
23  }
24 }
SCR_PlayerLoadout
Definition: SCR_PlayerLoadout.c:2
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_FactionPlayerLoadout
Definition: SCR_PlayerFactionLoadout.c:2
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468