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);
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;