Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DisarmExplosiveChargeAction.c
Go to the documentation of this file.
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
Enum with all types of fuzes.
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
SCR_ExplosiveChargeComponent m_ChargeComp
@ PerformAction