DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
EntityLightSource.c
Go to the documentation of this file.
2{
6};
7
8class EntityLightSource extends Entity
9{
10 //---------------------------------------------------------------------------
11 // Generic interface
12 //---------------------------------------------------------------------------
13 proto native void SetLightType(int pType); // This works only if it's caled in the light's constructor!
14 proto native int GetLightType();
15
16 proto native void SetEnabled(bool pState);
17 proto native bool IsEnabled();
18
19 proto native void SetCastShadow(bool pState);
20 proto native bool GetCastShadow();
21
22 proto native bool EnableSpecular(bool pState);
23 proto native bool EnableLinear(bool pState);
24
25 proto native void SetPulseCoef(float pState);
26
27 proto native void SetVisibleDuringDaylight(bool pState);
28 proto native bool IsVisibleDuringDaylight();
29
30 proto native void SetRadius(float pValue);
31 proto native float GetRadius();
32
33 //---------------------------------------------------------------------------
34 // heat haze
35 //---------------------------------------------------------------------------
36 proto native void EnableHeatHaze(bool pState);
37
38 proto native void SetHeatHazeRadius(float pValue);
39 proto native float GetHeatHazeRadius();
40
41 proto native void SetHeatHazePower(float pValue);
42 proto native float GetHeatHazePower();
43
44 //---------------------------------------------------------------------------
45 // colors & brightness
46 //---------------------------------------------------------------------------
47 proto native void SetDiffuseColor(float pRed, float pGreen, float pBlue);
48 proto native void SetDiffuseColorV(vector pColorVector);
49 proto native void SetDiffuseAlpha(float pAlpha);
50 proto native vector GetDiffuseColorV();
51 proto native float GetDiffuseAlpha();
52
53 proto native void SetAmbientColor(float pRed, float pGreen, float pBlue);
54 proto native void SetAmbientColorV(vector pColorVector);
55 proto native void SetAmbientAlpha(float pAlpha);
56 proto native vector GetAmbientColorV();
57 proto native float GetAmbientAlpha();
58
59 proto native void SetBrightness(float pValue);
60 proto native float GetBrightness();
61
62 //---------------------------------------------------------------------------
63 // flares
64 //---------------------------------------------------------------------------
65 proto native void SetFlareVisible(bool pState);
66 proto native bool IsFlareVisible();
67 proto native void SetFlareRelPosition(vector pPosition);
69
70 //---------------------------------------------------------------------------
71 // spot light specifics
72 //---------------------------------------------------------------------------
73 proto native void SetSpotLightAngle(float pValue);
74 proto native float GetSpotLightAngle();
75};
LightSourceType
@ SpotLight
@ PointLight
@ NotDef
Definition Camera.c:2
proto native bool IsEnabled()
proto native void SetFlareRelPosition(vector pPosition)
proto native void SetPulseCoef(float pState)
proto native bool IsVisibleDuringDaylight()
proto native vector GetDiffuseColorV()
proto native void SetAmbientColorV(vector pColorVector)
proto native void SetBrightness(float pValue)
proto native void SetCastShadow(bool pState)
proto native bool GetCastShadow()
proto native float GetHeatHazePower()
proto native void SetDiffuseColorV(vector pColorVector)
proto native int GetLightType()
proto native vector GetFlareRelPosition()
proto native void EnableHeatHaze(bool pState)
proto native void SetSpotLightAngle(float pValue)
proto native void SetLightType(int pType)
proto native bool EnableLinear(bool pState)
proto native void SetHeatHazeRadius(float pValue)
proto native float GetBrightness()
proto native vector GetAmbientColorV()
proto native float GetHeatHazeRadius()
proto native void SetDiffuseAlpha(float pAlpha)
proto native float GetDiffuseAlpha()
proto native void SetRadius(float pValue)
proto native float GetSpotLightAngle()
proto native void SetAmbientAlpha(float pAlpha)
proto native bool IsFlareVisible()
proto native bool EnableSpecular(bool pState)
proto native void SetDiffuseColor(float pRed, float pGreen, float pBlue)
proto native float GetRadius()
proto native float GetAmbientAlpha()
proto native void SetAmbientColor(float pRed, float pGreen, float pBlue)
proto native void SetHeatHazePower(float pValue)
proto native void SetFlareVisible(bool pState)
proto native void SetEnabled(bool pState)
proto native void SetVisibleDuringDaylight(bool pState)