Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
entitylightsource.c
Go to the documentation of this file.
1
enum
LightSourceType
2
{
3
NotDef
,
4
PointLight
,
5
SpotLight
6
};
7
8
class
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
};
PointLight
@ PointLight
Definition:
entitylightsource.c:4
SetEnabled
void SetEnabled()
prevents insider adding in the wrong position, HOTFIX
Definition:
traptrigger.c:50
NotDef
@ NotDef
Definition:
entitylightsource.c:3
vector
Definition:
enconvert.c:105
GetRadius
protected float GetRadius()
Definition:
radialmenu.c:372
Entity
Definition:
camera.c:1
SpotLight
@ SpotLight
Definition:
entitylightsource.c:5
LightSourceType
LightSourceType
Definition:
entitylightsource.c:1
EntityLightSource
Definition:
scriptedlightbase.c:10
DAYZ
scripts_v1.24.157551
scripts
game
entities
entitylightsource.c
Generated by
1.8.17