Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_GroupRolePresetConfig.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Localized group role")]
6
7 [Attribute(defvalue:"", uiwidget: UIWidgets.ResourceNamePicker, params: "et", desc: "Playable loadouts in preset. This loadout prefabs must be also set in loadout manager")]
8 protected ref array<ResourceName> m_aLoadoutResources;
9
10 [Attribute(defvalue:"1", desc: "Player can create this group, if false it will be not visible in create group menu")]
12
13 [Attribute(defvalue:"1", desc: "Can player join to group, if false, join button will be disabled, join requests cannot be sent to the group")]
14 protected bool m_bCanPlayerJoin;
15
16 //------------------------------------------------------------------------------------------------
22
23 //------------------------------------------------------------------------------------------------
27 {
28 return m_aLoadoutResources.Contains(loadout.GetDefaultLoadoutResource());
29 }
30
31 //------------------------------------------------------------------------------------------------
35 {
37 }
38
39 //------------------------------------------------------------------------------------------------
43 {
44 return m_bCanPlayerJoin;
45 }
46
47 //------------------------------------------------------------------------------------------------
48 array<ResourceName> GetLoadouts()
49 {
50 array<ResourceName> loadouts = {};
51 loadouts.Copy(m_aLoadoutResources);
52
53 return loadouts;
54 }
55}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
array< ResourceName > GetLoadouts()
bool IsLoadoutInGroup(notnull SCR_FactionPlayerLoadout loadout)
ref array< ResourceName > m_aLoadoutResources
SCR_FieldOfViewSettings Attribute