Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionPlaySoundOnEntity.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Entity to play the sound on (Optional if action is attached on Slot that spawns target entity)")]
5 ref SCR_ScenarioFrameworkGet m_Getter;
6
7 [Attribute(desc: "Sound to play.")]
8 string m_sSound;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
16 IEntity entity;
17 if (!ValidateInputEntity(object, m_Getter, entity))
18 return;
19
21 if (!scenarioFrameworkSystem)
22 return;
23
24 SCR_ScenarioFrameworkCallQueueSystem.GetCallQueueNonPausable().CallLater(scenarioFrameworkSystem.PlaySoundOnEntity, 2000, false, entity, m_sSound);
25 }
26}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static SCR_ScenarioFrameworkSystem GetInstance()
void PlaySoundOnEntity(IEntity entity, string sSndName)
SCR_FieldOfViewSettings Attribute