264 {
265 #ifdef DEVELOPER
268 {
270 PlayerBase playerTarget = PlayerBase.Cast(target);
271
273 if (playerTarget && p.param5)
274 {
275 if (playerTarget.m_PresetSpawned)
276 {
277 playerTarget.m_PresetSpawned = false;
278 playerTarget.m_PresetItems.Clear();
279 }
280 if (ent)
281 {
282 playerTarget.m_PresetItems.Insert(ent);
283 }
284 }
285 }
286 #endif
287 }
FindInventoryLocationType
flags for searching locations in inventory
Param7< EntityAI, string, float, float, bool, string, FindInventoryLocationType > 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)