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

◆ CreatePlayer()

void MissionBenchmark::CreatePlayer ( )
inlineprotected

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

364 {
365 Entity playerEnt = GetGame().CreatePlayer(NULL, "SurvivorF_Eva", m_CurrentLocation.m_StartPos - "0 2.5 0", 0, "NONE");
366 PlayerBase player = PlayerBase.Cast(playerEnt);
367 GetGame().SelectPlayer(NULL, player);
368
369 player.GetStatWater().Set(3000);
370 player.GetStatEnergy().Set(3000);
371 player.SetAllowDamage(false);
372 player.SetCanBeDestroyed(false);
373 player.DisableSimulation(true);
374
375 FreeDebugCamera.GetInstance().SetFOV(0.72);
376 FreeDebugCamera.GetInstance().SetActive(true);
377 }
proto native void SelectPlayer(PlayerIdentity identity, Object player)
Selects player's controlled object.
proto native Entity CreatePlayer(PlayerIdentity identity, string name, vector pos, float radius, string spec)
Assign player entity to client (in multiplayer)
BenchmarkLocation m_CurrentLocation
Определения MissionBenchmark.c:128
proto native CGame GetGame()

Перекрестные ссылки CGame::CreatePlayer(), GetGame(), m_CurrentLocation и CGame::SelectPlayer().

Используется в OnLocationSwitch().