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

◆ TeleportToPos()

void MissionBenchmark::TeleportToPos ( BenchmarkLocation loc)
inlineprotected

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

324 {
325 FreeDebugCamera.GetInstance().SetPosition(loc.m_StartPos);
326 vector lookAtPos = loc.m_StartLookAtPos;
327 lookAtPos[1] = loc.m_StartPos[1];
328 FreeDebugCamera.GetInstance().LookAt(lookAtPos);
329
330 GetGame().GetPlayer().SetPosition(m_CurrentLocation.m_StartPos - "0 2.5 0");
331 m_IsPreloading = true;
332 }
vector m_StartPos
Определения MissionBenchmark.c:8
vector m_StartLookAtPos
Определения MissionBenchmark.c:9
proto native DayZPlayer GetPlayer()
BenchmarkLocation m_CurrentLocation
Определения MissionBenchmark.c:128
bool m_IsPreloading
Определения MissionBenchmark.c:117
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetPlayer(), m_CurrentLocation, m_IsPreloading, BenchmarkLocation::m_StartLookAtPos и BenchmarkLocation::m_StartPos.

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