313 {
314 #ifdef DEVELOPER
317 {
319 PlayerBase playerTarget = PlayerBase.Cast(target);
320
322 if (playerTarget && p.param5)
323 {
324 if (playerTarget.m_PresetSpawned)
325 {
326 playerTarget.m_PresetSpawned = false;
327 playerTarget.m_PresetItems.Clear();
328 }
329 if (ent)
330 {
331 playerTarget.m_PresetItems.Insert(ent);
332 }
333 }
334 }
335 #endif
336 }
FindInventoryLocationType
flags for searching locations in inventory
Param7 DevSpawnItemParams
EntityAI SpawnEntityInInventory(notnull EntityAI target, string className, float health, float quantity, bool special=false, string presetName="", FindInventoryLocationType locationType=FindInventoryLocationType.ANY)
tries to spawn item somewhere in inventory
proto bool Read(void value_in)