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

◆ CheckFadeOut()

void EntityLightSource::CheckFadeOut ( int current_time)
inlineprivate

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

649 {
650 // Control fade out of the light
651 if ( m_FadeOutTime != -1 && m_LifetimeEnd != -1 && current_time > m_LifetimeEnd - m_FadeOutTime )
652 {
653 m_FadeOutTime = -1;
654 m_FadeInTime = -1; // Stop fade in process
655 float time_left_in_s = (m_LifetimeEnd - current_time) * 0.001;
656 FadeBrightnessTo(0, time_left_in_s);
657 FadeRadiusTo(0, time_left_in_s);
658 }
659 }
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:288
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:311

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

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