Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkAIAction.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "If set to true, when this action gets activated, it will break the breakpoint in the Script Editor in CanActivate method from which you can step out to the OnActivate method and debug this specific action. This can be also set during runtime via Debug Menu > ScenarioFramework > Action Inspector")]
5 bool m_bDebug;
6
7 SCR_AIGroup m_AIGroup;
8 IEntity m_IEntity;
9
10 //------------------------------------------------------------------------------------------------
11 void Init(SCR_AIGroup targetAIGroup, IEntity entity)
12 {
13 // Here you can step out to the OnActivate method and debug this specific action if m_bDebug attribute is set to true.
14 // This can be also adjusted during runtime via Debug Menu > ScenarioFramework > Action Inspector
15 if (m_bDebug)
16 Print("[SCR_ScenarioFrameworkAIAction.Init] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
17
18 if (!targetAIGroup)
19 return;
20
21 m_AIGroup = targetAIGroup;
22 m_IEntity = entity;
23
24 OnActivate();
25 }
26
27 //------------------------------------------------------------------------------------------------
28 void OnActivate()
29 {
30 // Here you can step out to the OnActivate method and debug this specific action if m_bDebug attribute is set to true.
31 // This can be also adjusted during runtime via Debug Menu > ScenarioFramework > Action Inspector
32 if (m_bDebug)
33 Print("[SCR_ScenarioFrameworkAIAction.OnActivate] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
34 }
35
36 //------------------------------------------------------------------------------------------------
38 ref array<ref SCR_ScenarioFrameworkActionBase> GetSubActions();
39}
override void Init()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
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