DayZ 1.24
Loading...
Searching...
No Matches
ReplaceDetonatorItemOnDisarmLambda Class Reference
Inheritance diagram for ReplaceDetonatorItemOnDisarmLambda:
[legend]
Collaboration diagram for ReplaceDetonatorItemOnDisarmLambda:
[legend]

Private Member Functions

override void OnSuccess (EntityAI new_item)
 
override void OnAbort ()
 

Detailed Description

Definition at line 303 of file RemoteDetonator.c.

Member Function Documentation

◆ OnAbort()

override void ReplaceDetonatorItemOnDisarmLambda::OnAbort ( )
inlineprivate

Definition at line 321 of file RemoteDetonator.c.

322 {
323 super.OnAbort();
324
325 RemoteDetonator detonator = RemoteDetonator.Cast(m_OldItem);
326 if (detonator)
327 {
328 if (detonator.GetRemotelyActivatedItemBehaviour())
329 {
330 ExplosivesBase explosive = ExplosivesBase.Cast(detonator.GetRemotelyActivatedItemBehaviour().GetPairDevice());
331 if (explosive)
332 explosive.LockExplosivesSlots();
333 }
334 }
335 }

References ReplaceItemWithNewLambdaBase::m_OldItem.

◆ OnSuccess()

override void ReplaceDetonatorItemOnDisarmLambda::OnSuccess ( EntityAI new_item)
inlineprivate

Definition at line 305 of file RemoteDetonator.c.

306 {
307 super.OnSuccess(new_item);
308
309 RemoteDetonator detonator = RemoteDetonator.Cast(m_OldItem);
310 if (detonator)
311 {
312 if (detonator.GetRemotelyActivatedItemBehaviour())
313 {
314 ExplosivesBase explosive = ExplosivesBase.Cast(detonator.GetRemotelyActivatedItemBehaviour().GetPairDevice());
315 if (explosive)
316 explosive.Disarm();
317 }
318 }
319 }

The documentation for this class was generated from the following file: