Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
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
};
Entity
Definition
camera.c:2
Entity::IsEnabled
proto native bool IsEnabled()
Entity::SetFlareRelPosition
proto native void SetFlareRelPosition(vector pPosition)
Entity::SetPulseCoef
proto native void SetPulseCoef(float pState)
Entity::IsVisibleDuringDaylight
proto native bool IsVisibleDuringDaylight()
Entity::GetDiffuseColorV
proto native vector GetDiffuseColorV()
Entity::SetAmbientColorV
proto native void SetAmbientColorV(vector pColorVector)
Entity::SetBrightness
proto native void SetBrightness(float pValue)
Entity::SetCastShadow
proto native void SetCastShadow(bool pState)
Entity::GetCastShadow
proto native bool GetCastShadow()
Entity::GetHeatHazePower
proto native float GetHeatHazePower()
Entity::SetDiffuseColorV
proto native void SetDiffuseColorV(vector pColorVector)
Entity::GetLightType
proto native int GetLightType()
Entity::GetFlareRelPosition
proto native vector GetFlareRelPosition()
Entity::EnableHeatHaze
proto native void EnableHeatHaze(bool pState)
Entity::SetSpotLightAngle
proto native void SetSpotLightAngle(float pValue)
Entity::SetLightType
proto native void SetLightType(int pType)
Entity::EnableLinear
proto native bool EnableLinear(bool pState)
Entity::SetHeatHazeRadius
proto native void SetHeatHazeRadius(float pValue)
Entity::GetBrightness
proto native float GetBrightness()
Entity::GetAmbientColorV
proto native vector GetAmbientColorV()
Entity::GetHeatHazeRadius
proto native float GetHeatHazeRadius()
Entity::SetDiffuseAlpha
proto native void SetDiffuseAlpha(float pAlpha)
Entity::GetDiffuseAlpha
proto native float GetDiffuseAlpha()
Entity::SetRadius
proto native void SetRadius(float pValue)
Entity::GetSpotLightAngle
proto native float GetSpotLightAngle()
Entity::SetAmbientAlpha
proto native void SetAmbientAlpha(float pAlpha)
Entity::IsFlareVisible
proto native bool IsFlareVisible()
Entity::EnableSpecular
proto native bool EnableSpecular(bool pState)
Entity::SetDiffuseColor
proto native void SetDiffuseColor(float pRed, float pGreen, float pBlue)
Entity::GetRadius
proto native float GetRadius()
Entity::GetAmbientAlpha
proto native float GetAmbientAlpha()
Entity::SetAmbientColor
proto native void SetAmbientColor(float pRed, float pGreen, float pBlue)
Entity::SetHeatHazePower
proto native void SetHeatHazePower(float pValue)
Entity::SetFlareVisible
proto native void SetFlareVisible(bool pState)
Entity::SetEnabled
proto native void SetEnabled(bool pState)
Entity::SetVisibleDuringDaylight
proto native void SetVisibleDuringDaylight(bool pState)
EntityLightSource
Definition
scriptedlightbase.c:11
vector
Definition
enconvert.c:119
LightSourceType
LightSourceType
Definition
entitylightsource.c:2
SpotLight
@ SpotLight
Definition
entitylightsource.c:5
PointLight
@ PointLight
Definition
entitylightsource.c:4
NotDef
@ NotDef
Definition
entitylightsource.c:3
Games
Dayz
scripts
3_game
entities
entitylightsource.c
Generated by
1.17.0