Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ExplosiveTriggerComponent.c
Go to the documentation of this file.
4
5class SCR_ExplosiveTriggerComponent : SCR_BaseTriggerComponent
6{
7 protected RplComponent m_RplComp;
9
10 //------------------------------------------------------------------------------------------------
15
16 //------------------------------------------------------------------------------------------------
19 {
20 RplComponent rplComp = RplComponent.Cast(GetOwner().FindComponent(RplComponent));
21 if (!rplComp || rplComp.IsProxy() && !rplComp.IsOwnerProxy())
22 return;
23
25 m_ExplosiveChargeComp.DisarmCharge();
26
27 GetGame().GetCallqueue().CallLater(RPC_DoTrigger);
28 Rpc(RPC_DoTrigger);
29 }
30
31 //------------------------------------------------------------------------------------------------
32 override event protected void EOnInit(IEntity owner)
33 {
34 super.EOnInit(owner);
35 m_RplComp = RplComponent.Cast(owner.FindComponent(RplComponent));
36 }
37}
ArmaReforgerScripted GetGame()
Definition game.c:1398
void RPC_DoTrigger()
void SCR_BaseTriggerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
RplComponent m_RplComp
SCR_ExplosiveChargeComponent GetExplosiveChargeComponent()
SCR_ExplosiveChargeComponent m_ExplosiveChargeComp
void UseTrigger()
Authority method that will setoff this trigger and replicate the effect to other clients.
proto external Managed FindComponent(typename typeName)
IEntity GetOwner()
Owner entity of the fuel tank.
override void EOnInit(IEntity owner)