Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_LRS_Take_Weapon.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 //------------------------------------------------------------------------------------------------
10 override protected void Setup()
11 {
12 PlayNarrativeCharacterStage("LONGRANGESHOOTING_Instructor", 2);
13
14 CreateMarkerCustom("LONGRANGESHOOTING_Instructor", SCR_EScenarioFrameworkMarkerCustom.POINT_OF_INTEREST, SCR_EScenarioFrameworkMarkerCustomColor.REFORGER_ORANGE);
15 }
16
17 //------------------------------------------------------------------------------------------------
18 override void OnVoiceoverEventFinished(string eventName)
19 {
20 if (eventName != "SOUND_TUTORIAL_TA_COURSE_START_INSTRUCTOR_K_03")
21 return;
22
23 IEntity gun = GetGame().GetWorld().FindEntityByName("Course_M21");
24
25 if (gun)
26 RegisterWaypoint(gun, "", "PICKUP");
27 }
28
29 //------------------------------------------------------------------------------------------------
30 override protected bool GetIsFinished()
31 {
32 BaseWeaponManagerComponent weaponManager = BaseWeaponManagerComponent.Cast(m_Player.FindComponent(BaseWeaponManagerComponent));
33
34 if (weaponManager)
35 if (weaponManager.GetCurrent())
36 return (weaponManager.GetCurrent().GetWeaponType() == EWeaponType.WT_SNIPERRIFLE);
37 else
38 return false;
39 else
40 return true;
41 }
42};
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.
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
SCR_MapMarkerBase CreateMarkerCustom(string entityName, SCR_EScenarioFrameworkMarkerCustom icon, SCR_EScenarioFrameworkMarkerCustomColor color, string name=string.Empty)
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
void PlayNarrativeCharacterStage(string characterName, int stage)
override void OnVoiceoverEventFinished(string eventName)
EWeaponType
Definition EWeaponType.c:13