Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_Seizing_Move.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 //------------------------------------------------------------------------------------------------
10 void OnMapOpen(MapConfiguration config)
11 {
12 ShowHint(1);
13
14 SCR_MapEntity.GetOnMapOpen().Remove(OnMapOpen);
15 }
16
17 //------------------------------------------------------------------------------------------------
18 void OnMapClosed(MapConfiguration config)
19 {
20 ShowHint(2);
21
22 SCR_MapEntity.GetOnMapClose().Remove(OnMapClosed);
23 }
24
25 //------------------------------------------------------------------------------------------------
26 protected void DelayedSpeech()
27 {
28 if (vector.Distance(m_Player.GetOrigin(), GetGame().GetWorld().FindEntityByName("SpawnPos_CONFLICT_InstructorB").GetOrigin()) < 50)
29 return;
30
32 GetGame().GetCallqueue().Remove(DelayedSpeech);
33 }
34
35 //------------------------------------------------------------------------------------------------
36 override protected void Setup()
37 {
38 RegisterWaypoint("WP_SEIZING_1");
39 CreateMarkerPath("SEIZING_PATH_DOTS");
40
41 GetGame().GetCallqueue().CallLater(DelayedSpeech, 1000, true);
42
43 SCR_MapEntity.GetOnMapOpen().Insert(OnMapOpen);
44 SCR_MapEntity.GetOnMapClose().Insert(OnMapClosed);
45 }
46
47 //------------------------------------------------------------------------------------------------
49 {
50 GetGame().GetCallqueue().Remove(DelayedSpeech);
51 }
52};
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
proto external vector GetOrigin()
proto external BaseWorld GetWorld()
void CreateMarkerPath(string pathEntityName)
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
static ScriptInvokerBase< MapConfigurationInvoker > GetOnMapClose()
Get on map close invoker.
static ScriptInvokerBase< MapConfigurationInvoker > GetOnMapOpen()
Get on map open invoker.
static SCR_VoiceoverSystem GetInstance()
void PlaySequence(string sequenceName, IEntity actor1=null, IEntity actor2=null, IEntity actor3=null, IEntity actor4=null, IEntity actor5=null, bool playImmediately=true)
Plays a sequence of voiceover lines defined in loaded config (see SetData).