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

◆ GetCameraDirections()

void PluginBase::GetCameraDirections ( Man player,
bool allowFreeflight,
out vector position,
out vector direction )
inlineprotected

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

411 {
412 position = g_Game.GetCurrentCameraPosition();
413 direction = g_Game.GetCurrentCameraDirection();
414
415 if ((g_Game.IsDedicatedServer() || allowFreeflight) && FreeDebugCamera.GetInstance().IsActive())
416 {
417 position = FreeDebugCamera.GetInstance().GetPosition();
418 direction = FreeDebugCamera.GetInstance().GetDirection();
419 return;
420 }
421
422 if (player && !allowFreeflight)
423 {
424 position = player.GetPosition();
425 direction = player.GetDirection();
426 }
427 }
DayZGame g_Game
Определения DayZGame.c:3942

Перекрестные ссылки g_Game.

Используется в SpawnEntityOnGroundPatternGrid(), SpawnFromClipboard() и SpawnItemOnCrosshair().