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

Private Member Functions

void ReplaceAndDestroyLambda (EntityAI old_item, string new_item_type, PlayerBase player, bool destroy=false)
 
override void OnSuccess (EntityAI new_item)
 

Private Attributes

PlayerBase m_TargetPlayer
 
bool m_Destroy
 
bool m_Drop
 

Detailed Description

Definition at line 143 of file ActionUnrestrainTarget.c.

Constructor & Destructor Documentation

◆ ReplaceAndDestroyLambda()

void ReplaceAndDestroyLambda::ReplaceAndDestroyLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
bool destroy = false )
inlineprivate

Definition at line 149 of file ActionUnrestrainTarget.c.

References m_Destroy, and m_TargetPlayer.

Member Function Documentation

◆ OnSuccess()

override void ReplaceAndDestroyLambda::OnSuccess ( EntityAI new_item)
inlineprivate

Definition at line 156 of file ActionUnrestrainTarget.c.

157 {
158 super.OnSuccess(new_item);
159
160 if (m_Destroy)
161 new_item.SetHealth("", "", 0);
162 }

References m_Destroy.

Member Data Documentation

◆ m_Destroy

bool ReplaceAndDestroyLambda::m_Destroy
private

Definition at line 146 of file ActionUnrestrainTarget.c.

Referenced by OnSuccess(), and ReplaceAndDestroyLambda().

◆ m_Drop

bool ReplaceAndDestroyLambda::m_Drop
private

◆ m_TargetPlayer

PlayerBase ReplaceAndDestroyLambda::m_TargetPlayer
private

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