73 {
75 if (!targetEntity)
76 {
77 ErrorEx(
"Cannot get entity=" + targetEntity);
78 return;
79 }
80
82 if (!targetEntity.GetInventory().GetCurrentInventoryLocation(target_IL))
83 {
84 ErrorEx(
"Cannot get inventory location of entity=" + targetEntity);
85 return;
86 }
87
88
89 UndergroundStash stash;
91 {
93 if (stashedItem)
94 {
96 action_data.m_Player.ServerReplaceItemWithNew(lambda);
97 }
98 else
99 g_Game.ObjectDelete(stash);
100 }
101
102
103 MiscGameplayFunctions.DealEvinronmentAdjustedDmg(action_data.m_MainItem, action_data.m_Player, 10);
104 }
Super root of all classes in Enforce script.
ItemBase GetStashedItem()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.