Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
staticobj_roadblock_wood_small.c
Go to the documentation of this file.
1
class
StaticObj_Roadblock_Wood_Small
:
House
2
{
3
PointLightBase
m_BlinkingLight
;
4
5
override
void
EEInit
()
6
{
7
super.EEInit();
8
9
if
( !
g_Game
.IsDedicatedServer() )
10
{
11
m_BlinkingLight
=
EntranceLight
.Cast(
ScriptedLightBase
.CreateLightAtObjMemoryPoint(Roadblock_Light,
this
,
"Light"
));
12
}
13
}
14
15
override
void
EEDelete
(
EntityAI
parent)
16
{
17
super.EEDelete(parent);
18
19
if
( !
g_Game
.IsDedicatedServer() )
20
{
21
if
(
m_BlinkingLight
)
22
m_BlinkingLight
.Destroy();
23
}
24
}
25
};
26
27
class
Roadblock_Light
extends
PointLightBase
28
{
29
protected
float
m_DefaultBrightness
= 5.5;
30
protected
float
m_DefaultRadius
= 20;
31
32
void
Roadblock_Light
()
33
{
34
SetVisibleDuringDaylight(
true
);
35
SetRadiusTo(
m_DefaultRadius
);
36
SetBrightnessTo(
m_DefaultBrightness
);
37
FadeIn(1);
38
SetFadeOutTime(2);
39
SetFlareVisible(
false
);
40
SetCastShadow(
false
);
41
SetAmbientColor(0.9, 0.9, 0.7);
42
SetDiffuseColor(0.9, 0.9, 0.7);
43
44
SetBlinkingSpeed(1);
45
}
46
}
EntityAI
Definition
inventoryitem.c:2
House::House
void House()
Definition
building.c:87
PointLightBase
Definition
staticobj_roadblock_wood_small.c:28
PointLightBase::Roadblock_Light
void Roadblock_Light()
Definition
staticobj_roadblock_wood_small.c:32
PointLightBase::m_DefaultRadius
float m_DefaultRadius
Definition
staticobj_roadblock_wood_small.c:30
PointLightBase::m_DefaultBrightness
float m_DefaultBrightness
Definition
staticobj_roadblock_wood_small.c:29
ScriptedLightBase
Definition
pointlightbase.c:2
StaticObj_Roadblock_Wood_Small
Definition
staticobj_roadblock_wood_small.c:2
StaticObj_Roadblock_Wood_Small::EEInit
override void EEInit()
Definition
staticobj_roadblock_wood_small.c:5
StaticObj_Roadblock_Wood_Small::EEDelete
override void EEDelete(EntityAI parent)
Definition
staticobj_roadblock_wood_small.c:15
StaticObj_Roadblock_Wood_Small::m_BlinkingLight
PointLightBase m_BlinkingLight
Definition
staticobj_roadblock_wood_small.c:3
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
EntranceLight
void EntranceLight()
Definition
entrancelight.c:26
Games
Dayz
scripts
4_world
entities
building
wrecks
staticobj_roadblock_wood_small.c
Generated by
1.17.0