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

◆ Update()

override void DigitalCodeLockUI::Update ( float timeslice)
inlineprotected

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

358 {
359 super.Update(timeslice);
360
361 // Close menu if player reaches certain distance to lock
362 if (m_TargetLock)
363 {
364 Man player = g_Game.GetPlayer();
365 vector playerPos = player.GetPosition();
366
367 if (vector.DistanceSq(playerPos, m_TargetPosition) > 5.0 * 5.0)
368 {
369 Close();
370 return;
371 }
372 }
373
374 Input input = GetGame().GetInput();
375 if (input.LocalPress("UAUIBack", false))
376 {
377 Close();
378 return;
379 }
380
381 #ifdef PLATFORM_CONSOLE
382 CheckControllerInputs(input, timeslice);
383 #endif
384 }
DayZGame g_Game
Определения DayZGame.c:4074
void Close()
vector m_TargetPosition
Определения DigitalCodeLockUI.c:51
void CheckControllerInputs(Input input, float timeslice)
Определения DigitalCodeLockUI.c:386
EntityAI m_TargetLock
Определения DigitalCodeLockUI.c:50
proto native bool LocalPress(string action, bool check_focus=true)
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки CheckControllerInputs(), Close(), vector::DistanceSq(), g_Game, GetGame(), Input::LocalPress(), m_TargetLock и m_TargetPosition.