Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_Tutorial_LRS_Take_Weapon.c
Go to the documentation of this file.
1
[
EntityEditorProps
(insertable:
false
)]
2
class
SCR_Tutorial_LRS_Take_WeaponClass
:
SCR_BaseTutorialStageClass
3
{
4
};
5
6
//------------------------------------------------------------------------------------------------
7
class
SCR_Tutorial_LRS_Take_Weapon
:
SCR_BaseTutorialStage
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
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
IEntity::IEntity
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
SCR_BaseTutorialStageClass
Definition
SCR_BaseTutorialStage.c:3
SCR_BaseTutorialStage
Definition
SCR_BaseTutorialStage.c:8
SCR_BaseTutorialStage::m_Player
ChimeraCharacter m_Player
Definition
SCR_BaseTutorialStage.c:27
SCR_BaseTutorialStage::CreateMarkerCustom
SCR_MapMarkerBase CreateMarkerCustom(string entityName, SCR_EScenarioFrameworkMarkerCustom icon, SCR_EScenarioFrameworkMarkerCustomColor color, string name=string.Empty)
Definition
SCR_BaseTutorialStage.c:65
SCR_BaseTutorialStage::RegisterWaypoint
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
Definition
SCR_BaseTutorialStage.c:293
SCR_BaseTutorialStage::PlayNarrativeCharacterStage
void PlayNarrativeCharacterStage(string characterName, int stage)
Definition
SCR_BaseTutorialStage.c:510
SCR_Tutorial_LRS_Take_WeaponClass
Definition
SCR_Tutorial_LRS_Take_Weapon.c:3
SCR_Tutorial_LRS_Take_Weapon
Definition
SCR_Tutorial_LRS_Take_Weapon.c:8
SCR_Tutorial_LRS_Take_Weapon::OnVoiceoverEventFinished
override void OnVoiceoverEventFinished(string eventName)
Definition
SCR_Tutorial_LRS_Take_Weapon.c:18
SCR_Tutorial_LRS_Take_Weapon::Setup
void Setup()
Definition
SCR_Tutorial_LRS_Take_Weapon.c:10
SCR_Tutorial_LRS_Take_Weapon::GetIsFinished
bool GetIsFinished()
Definition
SCR_Tutorial_LRS_Take_Weapon.c:30
EWeaponType
EWeaponType
Definition
EWeaponType.c:13
scripts
Game
GameMode
Tutorial
Stages
ShootingLongRange
SCR_Tutorial_LRS_Take_Weapon.c
Generated by
1.17.0