DayZ 1.24
Loading...
Searching...
No Matches
AnniversarySpotLight.c
Go to the documentation of this file.
1class AnniversarySpotLight : Building
2{
3#ifndef SERVER
5#endif
6
7 protected bool m_LightState;
8
10 {
11 RegisterNetSyncVariableBool("m_LightState");
12 }
13
15 {
16 super.OnVariablesSynchronized();
17
18#ifndef SERVER
19 if (m_LightState)
21 else
22 {
23 if (m_Light)
24 m_Light.FadeOut(0.5);
25 }
26#endif
27 }
28
29 override void EEDelete(EntityAI parent)
30 {
31 super.EEDelete(parent);
32
33#ifndef SERVER
34 if (m_Light)
35 m_Light.Destroy();
36#endif
37 }
38
40 {
41 m_LightState = false;
42 SetSynchDirty();
43 }
44
45 void Activate()
46 {
47 m_LightState = true;
48 SetSynchDirty();
49 }
50}
class JsonUndergroundAreaTriggerData GetPosition
override void EEDelete(EntityAI parent)
override void OnVariablesSynchronized()
AnniversaryMainLight m_Light