DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SpawnEntityOnGroundPos() [1/2]

EntityAI PluginBase::SpawnEntityOnGroundPos ( PlayerBase player,
string item_name,
float health,
float quantity,
vector pos,
bool special = false,
bool withPhysics = false )
inlineprotected

См. определение в файле PluginDeveloper.c строка 492

493 {
494 if ( g_Game.IsServer() )
495 {
496 EntityAI entity = SpawnEntityOnGroundPos(player, item_name, pos);
497 if (entity)
498 SetupSpawnedEntity(player, entity, health, quantity, special);
499 else
500 OnSpawnErrorReport(item_name);
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 }
class LogManager EntityAI
DayZGame g_Game
Определения DayZGame.c:3942
ERPCs
Определения ERPCs.c:2
void OnSpawnErrorReport(string name)
Определения PluginDeveloper.c:294
EntityAI SpawnEntityOnGroundPos(PlayerBase player, string object_name, vector pos)
Определения PluginDeveloper.c:429
void SetupSpawnedEntity(PlayerBase player, EntityAI entity, float health, float quantity=-1, bool special=false, string presetName="")
Определения PluginDeveloper.c:301

Перекрестные ссылки Class::CastTo(), g_Game, OnSpawnErrorReport(), SetupSpawnedEntity() и SpawnEntityOnGroundPos().