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

◆ SetLifetime()

void EntityLightSource::SetLifetime ( float life_in_s)
inlineprivate

Makes the light destroy itself after the given time in seconds. The light will fade out if it's set to do so with SetFadeOutTime(...)

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

335 {
336 if(g_Game)
337 m_LifetimeEnd = g_Game.GetTime() + life_in_s * 1000;
338 }
DayZGame g_Game
Определения DayZGame.c:3942
float m_LifetimeEnd
Определения ScriptedLightBase.c:13

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

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