Dayz Explorer 1.28.160049
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)
20 {
22 }
23 else
24 {
25 if (m_Light)
26 m_Light.FadeOut(0.5);
27 }
28 #endif
29 }
30
31 override void EEDelete(EntityAI parent)
32 {
33 super.EEDelete(parent);
34
35 #ifndef SERVER
36 if (m_Light)
37 m_Light.Destroy();
38 #endif
39 }
40
42 {
43 m_LightState = false;
44 SetSynchDirty();
45 }
46
47 void Activate()
48 {
49 m_LightState = true;
50 SetSynchDirty();
51 }
52}
override void EEDelete(EntityAI parent)
override void OnVariablesSynchronized()
AnniversaryMainLight m_Light
class JsonUndergroundAreaTriggerData GetPosition