Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionSetGrenadeLive.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Grenade entity to set live.")]
5 ref SCR_ScenarioFrameworkGet m_Getter;
6
7 [Attribute(desc: "If enabled, grenade will be affected by physics")]
8 bool m_bEnableSimulation;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 IEntity entity;
14 if (!ValidateInputEntity(object, m_Getter, entity))
15 return;
16
18 if (!triggerComp)
19 return;
20
21 //Delayed call, so grenade is set "live" only after it is trully prepared.
22 SCR_ScenarioFrameworkSystem.GetCallQueuePausable().CallLater(triggerComp.SetLive, 1000, false);
23
24 if (!m_bEnableSimulation)
25 return;
26
28 if (projectileComponent)
29 projectileComponent.EnableSimulation(entity);
30 }
31}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external Managed FindComponent(typename typeName)
static ScriptCallQueue GetCallQueuePausable()
SCR_FieldOfViewSettings Attribute