DayZ 1.27
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(GetGame())
337 m_LifetimeEnd = GetGame().GetTime() + life_in_s * 1000;
338 }
proto int GetTime()
returns mission time in milliseconds
float m_LifetimeEnd
Определения ScriptedLightBase.c:13
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetTime() и m_LifetimeEnd.

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