Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkAIAddSetting.c
Go to the documentation of this file.
3{
4 [Attribute()]
5 protected ref SCR_AISettingBase m_Setting;
6
7 [Attribute("1", UIWidgets.CheckBox, desc: "If true, it will remove all settings of same categorization type, and if they were provided by Scenario Framework.")]
8 protected bool m_bRemoveSame;
9
10 //------------------------------------------------------------------------------------------------
12 {
13 // Init the AI setting object. We must provide it the Origin value.
14 if (m_Setting)
15 m_Setting.Internal_ConstructedAtProperty(SCR_EAISettingOrigin.SCENARIO, SCR_EAISettingFlags.SCENARIO_FRAMEWORK);
16 }
17
18 //------------------------------------------------------------------------------------------------
19 override void OnActivate()
20 {
21 super.OnActivate();
22
23 if (!m_Setting)
24 return;
25
26 SCR_AIGroupSettingsComponent settingsComp = SCR_AIGroupSettingsComponent.Cast(m_AIGroup.FindComponent(SCR_AIGroupSettingsComponent));
27
28 if (!settingsComp)
29 {
30 Print(string.Format("ScenarioFramework Action: SCR_AIGroupSettingsComponent not found for Action %1.", this), LogLevel.ERROR);
31 return;
32 }
33
34 settingsComp.AddSetting(m_Setting, true, m_bRemoveSame);
35 }
36}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_EAISettingOrigin
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
SCR_FieldOfViewSettings Attribute