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_DisarmExplosiveChargeAction.c
Go to the documentation of this file.
1
class
SCR_DisarmExplosiveChargeAction
:
SCR_ExplosiveChargeAction
2
{
3
//------------------------------------------------------------------------------------------------
4
override
bool
CanBeShownScript(
IEntity
user)
5
{
6
if
(!super.CanBeShownScript(user))
7
return
false
;
8
9
if
(
m_ChargeComp
.GetUsedFuzeType() ==
SCR_EFuzeType
.NONE)
10
return
false
;
11
12
return
true
;
13
}
14
15
//------------------------------------------------------------------------------------------------
16
override
void
PerformAction
(
IEntity
pOwnerEntity,
IEntity
pUserEntity)
17
{
18
if
(!pUserEntity || !
m_ChargeComp
)
19
return
;
20
21
super.
PerformAction
(pOwnerEntity, pUserEntity);
22
}
23
24
//------------------------------------------------------------------------------------------------
25
override
void
ProcesFinished(
IEntity
item,
bool
successful,
ItemUseParameters
animParams)
26
{
27
super.ProcesFinished(item, successful, animParams);
28
if
(!successful)
29
return
;
30
31
if
(!
m_ChargeComp
)
32
return
;
33
34
m_ChargeComp
.DisarmCharge();
35
}
36
}
SCR_EFuzeType
SCR_EFuzeType
Enum with all types of fuzes.
Definition
SCR_EFuzeType.c:3
IEntity
Definition
IEntity.c:13
ItemUseParameters
Definition
ItemUseParameters.c:16
SCR_DisarmExplosiveChargeAction
Definition
SCR_DisarmExplosiveChargeAction.c:2
SCR_ExplosiveChargeAction
Definition
SCR_ExplosiveChargeAction.c:2
SCR_ExplosiveChargeAction::PerformAction
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
Definition
SCR_ExplosiveChargeAction.c:54
SCR_ExplosiveChargeAction::m_ChargeComp
SCR_ExplosiveChargeComponent m_ChargeComp
Definition
SCR_ExplosiveChargeAction.c:9
PerformAction
@ PerformAction
Definition
EUserActionEvent.c:15
scripts
Game
UserActions
SCR_DisarmExplosiveChargeAction.c
Generated by
1.17.0