224 {
226 {
227 return false;
228 }
229
231 string itemType;
232 for (int i = 0; i < count; i++)
233 {
235 if (itemType ==
string.
Empty)
236 {
237 Debug.Log(
"Empty item type found at idx: " + i.ToString() +
" of 'simpleChildrenTypes' array. Skipping",
"n/a",
"n/a",
"SpawnSimpleChildrenItems");
238 continue;
239 }
240
243
244 if (item)
245 {
248 }
249 else
250 {
251 Weapon_Base wep;
253 Debug.Log(
"FAILED spawning item type: " + itemType +
" to parent: " + parent,
"n/a",
"n/a",
"SpawnSimpleChildrenItems");
254 }
255 }
256 return true;
257 }
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