DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
StaticObj_Roadblock_Wood_Small.c
Go to the documentation of this file.
2{
4
5 override void EEInit()
6 {
7 super.EEInit();
8
9 if ( !GetGame().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 ( !GetGame().IsDedicatedServer() )
20 {
21 if ( m_BlinkingLight )
22 m_BlinkingLight.Destroy();
23 }
24 }
25};
26
27class Roadblock_Light extends PointLightBase
28{
29 protected float m_DefaultBrightness = 5.5;
30 protected float m_DefaultRadius = 20;
31
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}
enum eAreaDecayStage m_DefaultBrightness
protected float m_DefaultRadius
void EntranceLight()
override void EEDelete(EntityAI parent)
proto native CGame GetGame()