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

◆ FadeOut()

void EntityLightSource::FadeOut ( float time_in_s = -1)
inlineprivate

Starts the fade out process and destroys the light when its done. Optional parameter allows you to set time of this fade out in seconds. If not set, then default value (from SetFadeOutTime(...)) is used.

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

348 {
349 float time_in_ms = time_in_s * 1000;
350
351 if (time_in_s == -1)
352 {
353 float kill_time_in_s = m_FadeOutTime*0.001;
354
355 FadeBrightnessTo(0, kill_time_in_s);
356 FadeRadiusTo(0, kill_time_in_s);
357 SetLifetime(kill_time_in_s);
358 }
359 else
360 {
361 FadeBrightnessTo(0, time_in_s);
362 FadeRadiusTo(0, time_in_s);
363 SetLifetime(time_in_s);
364 }
365 }
float m_FadeOutTime
Определения ScriptedLightBase.c:14
void SetLifetime(float life_in_s)
Makes the light destroy itself after the given time in seconds. The light will fade out if it's set t...
Определения ScriptedLightBase.c:334
void FadeBrightnessTo(float value, float time_in_s)
Fades the brightness of the light to the given value.
Определения ScriptedLightBase.c:285
void FadeRadiusTo(float value, float time_in_s)
Fades the radius of the light to the given value.
Определения ScriptedLightBase.c:308

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