DayZ 1.30
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 строка 337

338 {
339 if(g_Game)
340 m_LifetimeEnd = g_Game.GetTime() + life_in_s * 1000;
341 }
DayZGame g_Game
Определения DayZGame.c:4074
float m_LifetimeEnd
Определения ScriptedLightBase.c:13

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

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