Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
anniversaryspotlight.c
Go to the documentation of this file.
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)
AnniversaryMainLight m_Light
override void OnVariablesSynchronized()
void Building()
Definition building.c:258
vector GetPosition()
Get the world position of the Effect.
Definition effect.c:473