Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
ScenarioFrameworkActionCinematicTrack.c
Go to the documentation of this file.
1[CinematicTrackAttribute(name:"ScenarioFramework action cinematic track", description:"Allows you to activate Scenario Framework actions defined on SCR_ScenarioFrameworkCinematicEntityComponent attached to CinematicEntity")]
3{
4
5 [Attribute(defvalue: "", desc: "Name of action sequence defined in SCR_ScenarioFrameworkCinematicEntityComponent")]
6 protected string m_sActionSequenceName;
7
8 private World actualWorld;
9
10 //------------------------------------------------------------------------------------------------
12 void Launch()
13 {
14 if (!GetGame().GetWorld())
15 return;
16
17 IEntity entity;
18 entity = actualWorld.FindEntityByName(GetSceneName());
19
20 if (!entity)
21 return;
22
23 SCR_ScenarioFrameworkCinematicEntityComponent sfComponent = SCR_ScenarioFrameworkCinematicEntityComponent.Cast(entity.FindComponent(SCR_ScenarioFrameworkCinematicEntityComponent));
24 if (sfComponent)
25 sfComponent.ActivateAction(m_sActionSequenceName);
26 }
27
28 override void OnInit(World world)
29 {
30 actualWorld = world;
31 }
32
33}
ArmaReforgerScripted GetGame()
Definition game.c:1398
void CinematicEventAttribute(string name="")
Definition attributes.c:18
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external Managed FindComponent(typename typeName)
Definition World.c:16
SCR_FieldOfViewSettings Attribute