100 {
101 if (CanTakeToInventory())
102 {
104 if (ent)
105 {
107 {
108 InventoryLocation il = new InventoryLocation;
110 if (il.
IsValid() &&
g_Game.GetPlayer().GetInventory().LocationCanAddEntity( il ))
111 {
112 SplitItemUtils.TakeOrSplitToInventoryLocation( PlayerBase.Cast(
g_Game.GetPlayer() ), il );
113 #ifdef PLATFORM_CONSOLE
115 {
117 }
118 #endif
119 return true;
120 }
121 }
122 }
123 }
124 return false;
125 }
class GP5GasMask extends MaskBase ItemBase
FindInventoryLocationType
flags for searching locations in inventory
override EntityAI GetFocusedItem()
proto native bool IsValid()
verify current set inventory location
override bool IsTakeable()
void PrepareOwnedTooltipAfterItemTransfer()