Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
entitylightsource.c
Go to the documentation of this file.
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);
68 proto native vector GetFlareRelPosition();
69
70 //---------------------------------------------------------------------------
71 // spot light specifics
72 //---------------------------------------------------------------------------
73 proto native void SetSpotLightAngle(float pValue);
74 proto native float GetSpotLightAngle();
75};
Definition camera.c:2
void SetEnabled()
prevents insider adding in the wrong position, HOTFIX
LightSourceType
@ SpotLight
@ PointLight
@ NotDef
proto native bool IsEnabled()
Enabled flag getter.
float GetRadius()
Definition radialmenu.c:372