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_ScenarioFrameworkActionSetGrenadeLive.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionSetGrenadeLive
:
SCR_ScenarioFrameworkActionBase
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
17
BaseTriggerComponent
triggerComp =
BaseTriggerComponent
.Cast(entity.
FindComponent
(
BaseTriggerComponent
));
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
27
GrenadeMoveComponent
projectileComponent =
GrenadeMoveComponent
.Cast(entity.
FindComponent
(
GrenadeMoveComponent
));
28
if
(projectileComponent)
29
projectileComponent.EnableSimulation(entity);
30
}
31
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
BaseTriggerComponent
Definition
BaseTriggerComponent.c:13
GrenadeMoveComponent
Definition
GrenadeMoveComponent.c:13
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionSetGrenadeLive
Definition
SCR_ScenarioFrameworkActionSetGrenadeLive.c:3
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
SCR_ScenarioFrameworkSystem
Definition
SCR_ScenarioFrameworkSystem.c:2
SCR_ScenarioFrameworkSystem::GetCallQueuePausable
static ScriptCallQueue GetCallQueuePausable()
Definition
SCR_ScenarioFrameworkSystem.c:87
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionSetGrenadeLive.c
Generated by
1.17.0