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

◆ CreatePlayer()

void MissionBenchmark::CreatePlayer ( )
inlineprotected

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

365 {
366 Entity playerEnt = GetGame().CreatePlayer(null, "SurvivorF_Eva", m_CurrentLocation.m_StartPos - "0 2.5 0", 0, "NONE");
367 PlayerBase player = PlayerBase.Cast(playerEnt);
368 GetGame().SelectPlayer(NULL, player);
369
370 player.GetStatWater().Set(3000);
371 player.GetStatEnergy().Set(3000);
372 player.SetModifiers(false);
373 player.SetAllowDamage(false);
374 player.SetCanBeDestroyed(false);
375 player.DisableSimulation(true);
376
377 FreeDebugCamera.GetInstance().SetFOV(0.72);
378 FreeDebugCamera.GetInstance().SetActive(true);
379 }
BenchmarkLocation m_CurrentLocation
Определения MissionBenchmark.c:128
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки GetGame() и m_CurrentLocation.

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