Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIGroupCombatModeSetting.c
Go to the documentation of this file.
1[BaseContainerProps(visible: false)]
3{
4 override typename GetCategorizationType()
5 {
7 }
8
11 EAIGroupCombatMode GetCombatMode(EAIGroupCombatMode combatMode);
12
13 override void ApplyEffects(SCR_AISettingsBaseComponent settingsComp)
14 {
15 SCR_AIGroupUtilityComponent utility = SCR_AIGroupUtilityComponent.Cast(settingsComp.GetOwner().FindComponent(SCR_AIGroupUtilityComponent));
16 if (utility)
17 {
18 EAIGroupCombatMode combatMode = GetCombatMode(0);
19 utility.SetCombatMode(combatMode);
20 }
21 }
22}
23
25class SCR_AIGroupCombatModeSetting : SCR_AIGroupCombatModeSettingBase
26{
27 [Attribute(typename.EnumToString(EAIGroupCombatMode, EAIGroupCombatMode.FIRE_AT_WILL), UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EAIGroupCombatMode))]
28 protected EAIGroupCombatMode m_eCombatMode;
29
30 static SCR_AIGroupCombatModeSetting Create(SCR_EAISettingOrigin origin, EAIGroupCombatMode combatMode)
31 {
32 SCR_AIGroupCombatModeSetting s = new SCR_AIGroupCombatModeSetting();
33 s.Init(origin);
34 s.m_eCombatMode = combatMode;
35 return s;
36 }
37
38 override EAIGroupCombatMode GetCombatMode(EAIGroupCombatMode combatMode)
39 {
40 return m_eCombatMode;
41 }
42
43 override string GetDebugText()
44 {
45 return typename.EnumToString(EAIGroupCombatMode, m_eCombatMode);
46 }
47}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override GetCategorizationType()
SCR_EAISettingOrigin
void SetCombatMode(EAIGroupCombatMode combatMode)
Sets combat mode as desired by external means, such as scenario, or commanding, or game master.
SCR_FieldOfViewSettings Attribute