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

◆ CheckFadeOut()

void EntityLightSource::CheckFadeOut ( int current_time)
inlineprivate

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

646 {
647 // Control fade out of the light
648 if ( m_FadeOutTime != -1 && m_LifetimeEnd != -1 && current_time > m_LifetimeEnd - m_FadeOutTime )
649 {
650 m_FadeOutTime = -1;
651 m_FadeInTime = -1; // Stop fade in process
652 float time_left_in_s = (m_LifetimeEnd - current_time) * 0.001;
653 FadeBrightnessTo(0, time_left_in_s);
654 FadeRadiusTo(0, time_left_in_s);
655 }
656 }
float m_FadeInTime
Определения ScriptedLightBase.c:15
float m_FadeOutTime
Определения ScriptedLightBase.c:14
void FadeBrightnessTo(float value, float time_in_s)
Fades the brightness of the light to the given value.
Определения ScriptedLightBase.c:285
float m_LifetimeEnd
Определения ScriptedLightBase.c:13
void FadeRadiusTo(float value, float time_in_s)
Fades the radius of the light to the given value.
Определения ScriptedLightBase.c:308

Перекрестные ссылки FadeBrightnessTo(), FadeRadiusTo(), m_FadeInTime, m_FadeOutTime и m_LifetimeEnd.

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