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

◆ GetCameraDirections()

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

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

460 {
461 position = g_Game.GetCurrentCameraPosition();
462 direction = g_Game.GetCurrentCameraDirection();
463
464 if ((g_Game.IsDedicatedServer() || allowFreeflight) && FreeDebugCamera.GetInstance().IsActive())
465 {
466 position = FreeDebugCamera.GetInstance().GetPosition();
467 direction = FreeDebugCamera.GetInstance().GetDirection();
468 return;
469 }
470
471 if (player && !allowFreeflight)
472 {
473 position = player.GetPosition();
474 direction = player.GetDirection();
475 }
476 }
DayZGame g_Game
Определения DayZGame.c:4074
vector position
Определения DustKickupEffects.c:20

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

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