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

Protected Member Functions

EntityAI CreateNewEntity ()
 

Private Member Functions

void ReplaceAndDestroyLambdaEx (EntityAI old_item, string new_item_type, PlayerBase player, bool destroy=false, bool enableDrop=true)
 

Detailed Description

Definition at line 165 of file ActionUnrestrainTarget.c.

Constructor & Destructor Documentation

◆ ReplaceAndDestroyLambdaEx()

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

Member Function Documentation

◆ CreateNewEntity()

EntityAI ReplaceAndDestroyLambdaEx::CreateNewEntity ( )
inlineprotected

Definition at line 172 of file ActionUnrestrainTarget.c.

173 {
174 EntityAI newItem = super.CreateNewEntity();
175
176 if (!newItem && m_Drop)
177 newItem = EntityAI.Cast(GetGame().CreateObjectEx(m_NewItemType, m_TargetPlayer.GetPosition(), ECE_PLACE_ON_SURFACE | ECE_LOCAL));
178
179 return newItem;
180 }
const int ECE_LOCAL
const int ECE_PLACE_ON_SURFACE
proto native CGame GetGame()

References ECE_LOCAL, ECE_PLACE_ON_SURFACE, GetGame(), ReplaceAndDestroyLambda::m_Drop, and ReplaceAndDestroyLambda::m_TargetPlayer.


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