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

Private Member Functions

void UngagSelfLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
override void OnSuccess (EntityAI new_item)
 
override void OnAbort ()
 

Private Attributes

MouthRag gag
 
EntityAI m_OriginalOwner
 

Detailed Description

Definition at line 52 of file ActionUngagSelf.c.

Constructor & Destructor Documentation

◆ UngagSelfLambda()

void UngagSelfLambda::UngagSelfLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )
inlineprivate

Definition at line 57 of file ActionUngagSelf.c.

58 {
59 gag = MouthRag.Cast(m_OldItem);
60 if (gag)
61 gag.SetIncomingLambaBool(true);
63 targetHnd.SetHands(player, null);
64 OverrideNewLocation(targetHnd);
65 m_OriginalOwner = m_OldItem.GetHierarchyRoot();
66 }
InventoryLocation.
EntityAI m_OriginalOwner

References gag, and m_OriginalOwner.

Member Function Documentation

◆ OnAbort()

override void UngagSelfLambda::OnAbort ( )
inlineprivate

Definition at line 77 of file ActionUngagSelf.c.

78 {
79 if (gag)
80 gag.SetIncomingLambaBool(false);
81 }

References gag.

◆ OnSuccess()

override void UngagSelfLambda::OnSuccess ( EntityAI new_item)
inlineprivate

Definition at line 68 of file ActionUngagSelf.c.

69 {
70 super.OnSuccess(new_item);
71
74 player.CheckForGag();
75 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), and m_OriginalOwner.

Member Data Documentation

◆ gag

MouthRag UngagSelfLambda::gag
private

Definition at line 54 of file ActionUngagSelf.c.

Referenced by OnAbort(), and UngagSelfLambda().

◆ m_OriginalOwner

EntityAI UngagSelfLambda::m_OriginalOwner
private

Definition at line 55 of file ActionUngagSelf.c.

Referenced by OnSuccess(), and UngagSelfLambda().


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