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

◆ OnUpdate() [14/15]

override void BotStateBase::OnUpdate ( float dt)
inlineprotected

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

30 {
31 super.OnUpdate(dt);
32
33 m_dtAccumulator += dt;
34
35 float rescanTime = m_Timeout;
36 if (m_dtAccumulator >= rescanTime)
37 {
38 OnTimeout();
39
40 if (m_Periodic)
41 m_dtAccumulator = 0.0;
42 else
43 m_dtAccumulator = -1.0;
44 }
45 }
void OnTimeout()
Определения Bot_TimedWait.c:47
float m_dtAccumulator
Определения Bot_Hunt.c:18
float m_Timeout
Определения Bot_TimedWait.c:7
bool m_Periodic
Определения Bot_TimedWait.c:8

Перекрестные ссылки m_dtAccumulator, m_Periodic, m_Timeout и OnTimeout().