DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
StaticObj_Roadblock_Wood_Small.c
См. документацию.
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
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}
void EntranceLight()
Определения EntranceLight.c:26
Определения Building.c:6
void House()
Определения Building.c:3
void Roadblock_Light()
float m_DefaultRadius
float m_DefaultBrightness
override void EEDelete(EntityAI parent)
proto native CGame GetGame()