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

351 {
352 float time_in_ms = time_in_s * 1000;
353
354 if (time_in_s == -1)
355 {
356 float kill_time_in_s = m_FadeOutTime*0.001;
357
358 FadeBrightnessTo(0, kill_time_in_s);
359 FadeRadiusTo(0, kill_time_in_s);
360 SetLifetime(kill_time_in_s);
361 }
362 else
363 {
364 FadeBrightnessTo(0, time_in_s);
365 FadeRadiusTo(0, time_in_s);
366 SetLifetime(time_in_s);
367 }
368 }
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:337
void FadeBrightnessTo(float value, float time_in_s)
Fades the brightness of the light to the given value.
Определения ScriptedLightBase.c:288
void FadeRadiusTo(float value, float time_in_s)
Fades the radius of the light to the given value.
Определения ScriptedLightBase.c:311

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