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

◆ TeleportToPos()

void MissionBenchmark::TeleportToPos ( BenchmarkLocation loc)
inlineprotected

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

337 {
338 FreeDebugCamera.GetInstance().SetPosition(loc.m_StartPos);
339 vector lookAtPos = loc.m_StartLookAtPos;
340 lookAtPos[1] = loc.m_StartPos[1];
341 FreeDebugCamera.GetInstance().LookAt(lookAtPos);
342
343 GetGame().GetPlayer().SetPosition(m_CurrentLocation.m_StartPos - "0 2.5 0");
344 m_IsPreloading = true;
345 }
vector m_StartPos
Определения MissionBenchmark.c:8
vector m_StartLookAtPos
Определения MissionBenchmark.c:9
BenchmarkLocation m_CurrentLocation
Определения MissionBenchmark.c:128
bool m_IsPreloading
Определения MissionBenchmark.c:117
DayZGame GetGame()
Определения gameplay.c:636

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

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