Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkMedicalAction.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
8
9 //------------------------------------------------------------------------------------------------
12 void Init(SCR_ChimeraCharacter character)
13 {
14 // Here you can step out to the OnActivate method and debug this specific action if m_bDebug attribute is set to true.
15 // This can be also adjusted during runtime via Debug Menu > ScenarioFramework > Action Inspector
16 if (m_bDebug)
17 Print("[SCR_ScenarioFrameworkMedicalAction.Init] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
18
19 m_DamageManager = SCR_CharacterDamageManagerComponent.Cast(character.GetDamageManager());
20 if (!m_DamageManager)
21 {
22 Print(string.Format("ScenarioFramework Action: Character Damage Manager Component not found for Action %1.", this), LogLevel.ERROR);
23 return;
24 }
25
26 OnActivate();
27 }
28
29 //------------------------------------------------------------------------------------------------
30 void OnActivate()
31 {
32 // Here you can step out to the OnActivate method and debug this specific action if m_bDebug attribute is set to true.
33 // This can be also adjusted during runtime via Debug Menu > ScenarioFramework > Action Inspector
34 if (m_bDebug)
35 Print("[SCR_ScenarioFrameworkMedicalAction.OnActivate] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
36 }
37
38 //------------------------------------------------------------------------------------------------
40 ref array<ref SCR_ScenarioFrameworkActionBase> GetSubActions();
41}
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