235 {
237 {
238 return false;
239 }
240
242 string itemType;
243 for (int i = 0; i < count; i++)
244 {
246 if (itemType ==
string.
Empty)
247 {
248 Debug.Log(
"Empty item type found at idx: " + i.ToString() +
" of 'simpleChildrenTypes' array. Skipping",
"n/a",
"n/a",
"SpawnSimpleChildrenItems");
249 continue;
250 }
251
254
255 if (item)
256 {
259 }
260 else
261 {
262 Weapon_Base wep;
264 Debug.Log(
"FAILED spawning item type: " + itemType +
" to parent: " + parent,
"n/a",
"n/a",
"SpawnSimpleChildrenItems");
265 }
266 }
267 return true;
268 }
class GP5GasMask extends MaskBase ItemBase
static void ApplyAttributes(ItemBase item, PlayerSpawnAttributesData attributes)
static bool IsWeaponAndMagazineType(EntityAI parent, string type)
Used for exceptions in the system.
static EntityAI CreateChildItem(EntityAI parent, string type)
bool simpleChildrenUseDefaultAttributes
ref array< string > simpleChildrenTypes
ref PlayerSpawnAttributesData attributes