97 {
98 bool success = true;
99
100 InventoryLocation il = new InventoryLocation;
101
103 if (
ItemBase.CastTo(targetItem, action_data.m_Target.GetObject()) )
104 {
106 if ( action_data.m_Player.GetInventory().HasInventoryReservation( targetItem, il) )
107 {
108 success = false;
109 }
110 else
111 {
112 action_data.m_Player.GetInventory().AddInventoryReservationEx( targetItem, il, GameInventory.c_InventoryReservationTimeoutMS);
113 }
114 }
115
116 if ( success )
117 {
118 if( il )
119 action_data.m_ReservedInventoryLocations.Insert(il);
120 }
121
122 return success;
123 }
class GP5GasMask extends MaskBase ItemBase
FindInventoryLocationType
flags for searching locations in inventory