Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
DropEquipAndDestroyRootLambda Class Reference

this one is a bit special: it drops all items and destroys the ex-root of the hierarchy More...

Inheritance diagram for DropEquipAndDestroyRootLambda:
ReplaceItemWithNewLambdaBase DigOutStashLambda

Private Member Functions

void DropEquipAndDestroyRootLambda (EntityAI old_item, string new_item_type, PlayerBase player)
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
Private Member Functions inherited from ReplaceItemWithNewLambdaBase
bool CanExecuteLambda ()
void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
void CreateNetworkObjectInfo (EntityAI new_item)
EntityAI CreateNewEntity ()
 Step D.
void DeleteOldEntity ()
 Step F.
string DumpToString ()
void Execute (HumanInventoryWithFSM fsm_to_notify=null)
void OnAbort ()
 Step Out - notification on abort.
void OnSuccess (EntityAI new_item)
bool PrepareLocations ()
 Step A.
void RemoveNetworkObjectInfo ()
 Step C.
void RemoveOldItemFromLocation ()
 Step B.
void UndoRemoveNetworkObjectInfo ()
void UndoRemoveOldItemFromLocation ()
bool WantCreateNewEntity ()

Private Attributes

PlayerBase m_Player
Private Attributes inherited from ReplaceItemWithNewLambdaBase
ref InventoryLocation m_NewLocation
ref InventoryLocation m_OldLocation
bool m_RemoveFromLocationPassed = false

Detailed Description

this one is a bit special: it drops all items and destroys the ex-root of the hierarchy

Definition at line 115 of file miscgameplayfunctions.c.

Constructor & Destructor Documentation

◆ DropEquipAndDestroyRootLambda()

void DropEquipAndDestroyRootLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )
inlineprivate

Definition at line 119 of file miscgameplayfunctions.c.

References m_Player.

Member Function Documentation

◆ CopyOldPropertiesToNew()

override void CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )
inlineprivate

We don't care if a valid transform couldn't be found, we just want to preferably use it instead of placing on the old item

Definition at line 124 of file miscgameplayfunctions.c.

References g_Game, ReplaceItemWithNewLambdaBase::m_NewLocation, m_Player, Math3D::MatrixIdentity4(), GameInventory::PrepareDropEntityPos(), and InventoryLocation::SetGround().

Field Documentation

◆ m_Player


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