493 {
495 {
497 if (entity)
499 else
501
502 InventoryItem item;
503 if (Class.CastTo(item, entity) && withPhysics)
504 item.ThrowPhysically(null, "0 0 0");
505
506 return entity;
507 }
508 else
509 {
510 Param6<string, float, float, vector, bool, bool> params = new Param6<string, float, float, vector, bool, bool>(item_name, health, quantity, pos, special, withPhysics);
511 player.RPCSingleParam(
ERPCs.DEV_RPC_SPAWN_ITEM_ON_GROUND, params,
true);
512 }
513 return NULL;
514 }
void OnSpawnErrorReport(string name)
EntityAI SpawnEntityOnGroundPos(PlayerBase player, string object_name, vector pos)
void SetupSpawnedEntity(PlayerBase player, EntityAI entity, float health, float quantity=-1, bool special=false, string presetName="")