DayZ 1.24
Loading...
Searching...
No Matches
BrightnessTestLight.c
Go to the documentation of this file.
1// Test case for light sources not working during daytime as expected
2
3class BrightnessTestLight extends PointLightBase
4{
5 float m_Timer = 0;
6
8 {
9 SetVisibleDuringDaylight(true);
10 SetRadiusTo(30);
11 SetCastShadow(true);
12 SetDiffuseColor(1, 1, 1);
13 SetAmbientColor(1, 1, 1);
14
15 SetBrightnessTo(10);
16 }
17
19 {
21
23
24 if (pulse > 0)
25 {
26 Print(pulse);
27 SetBrightnessTo(pulse);
28 }
29 }
30}
ref Timer m_Timer
Definition DayZGame.c:675
Definition EnMath.c:7
override void OnFrameLightSource(IEntity other, float timeSlice)
proto void Print(void var)
Prints content of variable to console/log.
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float AbsFloat(float f)
Returns absolute value.