Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
land_buoy.c
Go to the documentation of this file.
1class Land_Buoy extends House
2{
3 protected BuoyLight m_Light;
4
5 override void DeferredInit()
6 {
7 super.DeferredInit();
8
9 if (!GetGame().IsDedicatedServer())
10 {
11 m_Light = BuoyLight.Cast(ScriptedLightBase.CreateLightAtObjMemoryPoint(BuoyLight, this, "light_01"));
12 m_Light.SetSelectionID(GetHiddenSelectionIndex("Glass"));
13 m_Light.UpdateLightSourceMaterial(BuoyLight.LIGHT_MAT_ON);
14 }
15 }
16
18 {
19 if (m_Light)
20 m_Light.Destroy();
21 }
22}
23
24class Land_MooringBuoy extends House
25{
27
28 override void DeferredInit()
29 {
30 super.DeferredInit();
31
32 if (!GetGame().IsDedicatedServer())
33 {
34 m_Light = MooringBuoyLight.Cast(ScriptedLightBase.CreateLightAtObjMemoryPoint(MooringBuoyLight, this, "light_01"));
35 m_Light.SetSelectionID(GetHiddenSelectionIndex("Glass"));
36 m_Light.UpdateLightSourceMaterial(MooringBuoyLight.LIGHT_MAT_ON);
37 }
38 }
39
41 {
42 if (m_Light)
43 m_Light.Destroy();
44 }
45}
void MooringBuoyLight()
Definition buoylight.c:47
void ~Land_Buoy()
Definition land_buoy.c:17
BuoyLight m_Light
Definition land_buoy.c:3
override void DeferredInit()
Definition land_buoy.c:5
proto native CGame GetGame()
class Land_Buoy extends House m_Light
void ~Land_MooringBuoy()
Definition land_buoy.c:40