34 {
37 return false;
38 if (tgtItem && tgtItem.IsBeingPlaced())
39 return false;
40
43
44 if (tgtEntity && (!tgtParent || tgtParent.CanUseConstruction()))
45 {
46 if (tgtEntity && tgtEntity.IsItemBase() && player.GetInventory().CanAddEntityIntoInventory(tgtEntity) && tgtEntity.GetHierarchyRootPlayer() != player)
47 {
48 if (tgtParent && (!tgtItem.
CanDetachAttachment(tgtParent) || !tgtParent.CanReleaseAttachment(tgtItem)))
49 return false;
50
54 return false;
55
56 return true;
57 }
58 }
59 return false;
60 }
class GP5GasMask extends MaskBase ItemBase
bool CanDetachCodeLock(notnull PlayerBase player, int componentIndex)
Condition check called from ActionTakeItem and ActionTakeItemToHands.
override bool CanDetachAttachment(EntityAI parent)
override bool IsTakeable()