Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionOnCinematicFinished.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Getter of cinematic entity.")]
5 ref SCR_ScenarioFrameworkGet m_Getter;
6
7 [Attribute(desc: "Actions that will be triggered once the cinematic finishes playing")]
8 ref array<ref SCR_ScenarioFrameworkActionBase> m_aActions;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
16 IEntity entity;
17 if (!ValidateInputEntity(object, m_Getter, entity))
18 return;
19
20 CinematicEntity cinematic = CinematicEntity.Cast(entity);
21 if (!cinematic)
22 {
23 PrintFormat(string.Format("ScenarioFramework Action: Entity %1 is not CinematicEntity.", cinematic), LogLevel.ERROR);
24 return;
25 }
26
27 cinematic.SetOnFinishedCallback(OnCinematicFinished);
28 }
29
30 //------------------------------------------------------------------------------------------------
31 void OnCinematicFinished()
32 {
33 foreach (SCR_ScenarioFrameworkActionBase actions : m_aActions)
34 {
35 actions.OnActivate(m_Entity);
36 }
37 }
38
39 //------------------------------------------------------------------------------------------------
40 override array<ref SCR_ScenarioFrameworkActionBase> GetSubActions()
41 {
42 return m_aActions;
43 }
44}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)
SCR_FieldOfViewSettings Attribute