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

◆ CreatePlayer()

void MissionBenchmark::CreatePlayer ( )
inlineprotected

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

352 {
353 Entity playerEnt = GetGame().CreatePlayer(NULL, "SurvivorF_Eva", m_CurrentLocation.m_StartPos - "0 2.5 0", 0, "NONE");
354 PlayerBase player = PlayerBase.Cast(playerEnt);
355 GetGame().SelectPlayer(NULL, player);
356
357 player.GetStatWater().Set(3000);
358 player.GetStatEnergy().Set(3000);
359 player.SetAllowDamage(false);
360 player.SetCanBeDestroyed(false);
361
362 FreeDebugCamera.GetInstance().SetFOV(0.72);
363 FreeDebugCamera.GetInstance().SetActive(true);
364 }
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().