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_SoundComponentCinematicTrack.c
Go to the documentation of this file.
1
[
CinematicTrackAttribute
(name:
"Sound Component Track"
, description:
"Track used for triggering sound on SoundComponent"
)]
2
class
SCR_SoundComponentCinematicTrack
:
SCR_CinematicTrackBase
3
{
4
[
Attribute
(
""
)]
5
protected
string
m_sSoundEvent
;
6
7
[
Attribute
(
""
)]
8
protected
string
m_sBoneName
;
9
10
protected
IEntity
m_owner
;
11
12
override
void
OnInit
(
World
world)
13
{
14
super.OnInit(world);
15
16
m_owner
=
FindOwner
();
17
}
18
19
[
CinematicEventAttribute
()]
20
void
PlayEvent
()
21
{
22
if
(
m_sSoundEvent
.IsEmpty())
23
{
24
return
;
25
}
26
27
if
(!
m_owner
)
28
{
29
m_owner
=
FindOwner
();
30
}
31
32
if
(!
m_owner
)
33
{
34
return
;
35
}
36
37
SoundComponent
soundComponent =
SoundComponent
.Cast(
m_owner
.FindComponent(
SoundComponent
));
38
if
(!soundComponent)
39
{
40
return
;
41
}
42
43
if
(
m_sBoneName
.IsEmpty())
44
{
45
soundComponent.SoundEvent(
m_sSoundEvent
);
46
}
47
else
48
{
49
soundComponent.SoundEventBone(
m_sSoundEvent
,
m_sBoneName
)
50
}
51
}
52
}
CinematicEventAttribute
void CinematicEventAttribute(string name="")
Definition
attributes.c:18
CinematicTrackAttribute
Definition
attributes.c:3
IEntity
Definition
IEntity.c:13
SCR_CinematicTrackBase
Definition
SCR_CinematicTrackBase.c:3
SCR_CinematicTrackBase::FindOwner
IEntity FindOwner()
Definition
SCR_CinematicTrackBase.c:12
SCR_SoundComponentCinematicTrack
Definition
SCR_SoundComponentCinematicTrack.c:3
SCR_SoundComponentCinematicTrack::OnInit
override void OnInit(World world)
Definition
SCR_SoundComponentCinematicTrack.c:12
SCR_SoundComponentCinematicTrack::m_sSoundEvent
string m_sSoundEvent
Definition
SCR_SoundComponentCinematicTrack.c:5
SCR_SoundComponentCinematicTrack::PlayEvent
void PlayEvent()
Definition
SCR_SoundComponentCinematicTrack.c:20
SCR_SoundComponentCinematicTrack::m_sBoneName
string m_sBoneName
Definition
SCR_SoundComponentCinematicTrack.c:8
SCR_SoundComponentCinematicTrack::m_owner
IEntity m_owner
Definition
SCR_SoundComponentCinematicTrack.c:10
SoundComponent
Definition
SoundComponent.c:13
World
Definition
World.c:16
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Cinematics
SCR_SoundComponentCinematicTrack.c
Generated by
1.17.0