Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkAIAddSetting.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerAIActionTitle
()]
2
class
SCR_ScenarioFrameworkAIAddSetting
:
SCR_ScenarioFrameworkAIAction
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
//------------------------------------------------------------------------------------------------
11
void
SCR_ScenarioFrameworkAIAddSetting
()
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EAISettingOrigin
SCR_EAISettingOrigin
Definition
SCR_AISetting.c:4
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_ContainerAIActionTitle
Definition
SCR_ContainerAIActionTitle.c:2
SCR_ScenarioFrameworkAIAction
Definition
SCR_ScenarioFrameworkAIAction.c:3
SCR_ScenarioFrameworkAIAddSetting::m_bRemoveSame
bool m_bRemoveSame
Definition
SCR_ScenarioFrameworkAIAddSetting.c:8
SCR_ScenarioFrameworkAIAddSetting::m_Setting
ref SCR_AISettingBase m_Setting
Definition
SCR_ScenarioFrameworkAIAddSetting.c:5
SCR_ScenarioFrameworkAIAddSetting::SCR_ScenarioFrameworkAIAddSetting
void SCR_ScenarioFrameworkAIAddSetting()
Definition
SCR_ScenarioFrameworkAIAddSetting.c:11
SCR_ScenarioFrameworkAIAddSetting::OnActivate
override void OnActivate()
Definition
SCR_ScenarioFrameworkAIAddSetting.c:19
UIWidgets
Definition
attributes.c:40
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
AIActions
SCR_ScenarioFrameworkAIAddSetting.c
Generated by
1.17.0