174 {
175 if (!dis)
176 {
177 Debug.Log(
"No PlayerSpawnPresetDiscreteItemSet found. Skipping spawn for slot: " + InventorySlots.GetSlotName(slotID),
"n/a",
"n/a",
"SpawnDiscreteSlotItemSet");
178 return false;
179 }
180
182 if (slotID == InventorySlots.HANDS)
183 item =
ItemBase.Cast(player.GetHumanInventory().CreateInHands(dis.
itemType));
184 else
185 item =
ItemBase.Cast(player.GetInventory().CreateAttachmentEx(dis.
itemType,slotID));
186
187 if (item)
188 {
190 }
192 {
193 Debug.Log(
"FAILED spawning item type: " + dis.
itemType +
" into slot: " + InventorySlots.GetSlotName(slotID) +
" of parent: " + player,
"n/a",
"n/a",
"SpawnDiscreteSlotItemSet");
194 return false;
195 }
196
197 return item != null;
198 }
class GP5GasMask extends MaskBase ItemBase
static void HandleNewItem(notnull ItemBase item, PlayerSpawnPresetItemSetBase data)
static const string Empty