DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Land_Buoy.c
См. документацию.
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()
Определения BuoyLight.c:47
class Land_Buoy extends House m_Light
void ~Land_MooringBuoy()
Определения Land_Buoy.c:40
void ~Land_Buoy()
Определения Land_Buoy.c:17
BuoyLight m_Light
Определения Land_Buoy.c:3
override void DeferredInit()
Определения Land_Buoy.c:5
Определения CrashBase.c:2
proto native CGame GetGame()