3 bool m_IncomingLambdaChange;
7 m_IncomingLambdaChange =
false;
10 override bool CanDetachAttachment(
EntityAI parent)
12 return m_IncomingLambdaChange;
15 override bool IsObstructingVoice()
20 override int GetVoiceEffect()
22 return VoiceEffectObstruction;
27 super.EEItemLocationChanged(oldLoc,newLoc);
29 if (
GetGame().IsDedicatedServer())
33 if (oldLoc.GetParent())
34 Class.CastTo(playerOld,oldLoc.GetParent().GetHierarchyRootPlayer());
35 if (newLoc.GetParent())
36 Class.CastTo(playerNew,newLoc.GetParent().GetHierarchyRootPlayer());
43 MiscGameplayFunctions.TransferItemProperties(
this,newItem);
44 newItem.SetQuantity(1);
51 override void OnWasAttached(
EntityAI parent,
int slot_id)
53 super.OnWasAttached(parent, slot_id);
55 if (parent.IsPlayer())
61 void SetIncomingLambaBool(
bool state)
63 m_IncomingLambdaChange = state;
66 bool GetIncomingLambdaBool()
68 return m_IncomingLambdaChange;
const int ECE_PLACE_ON_SURFACE
Super root of all classes in Enforce script.
proto native CGame GetGame()
InventoryLocationType
types of Inventory Location
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)