DayZ 1.24
Loading...
Searching...
No Matches
WorldLighting.c
Go to the documentation of this file.
2{
3 string lighting_default = "dz\\data\\lighting\\lighting_default.txt";
4 string lighting_darknight = "dz\\data\\lighting\\lighting_darknight.txt";
5
6 void WorldLighting() {}
7 void ~WorldLighting() {}
8
9 // sets global lighting config by given value (sent from server, defined in server config)
11 {
12 switch (lightingID)
13 {
14 case 0:
15 GetGame().GetWorld().LoadNewLightingCfg(lighting_default);
16 break;
17
18 case 1:
19 GetGame().GetWorld().LoadNewLightingCfg(lighting_darknight);
20 break;
21 }
22 }
23}
24
25/*modded class WorldLighting
26 {
27 protected string lighting_modded = "your\\path\\to\\lighting\\cfg.txt";
28
29 override void SetGlobalLighting( int lightingID )
30 {
31 switch ( lightingID )
32 {
33 case 3:
34 GetGame().GetWorld().LoadNewLightingCfg( lighting_modded );
35 break;
36 }
37 }
38 }*/
void ~WorldLighting()
void WorldLighting()
void SetGlobalLighting(int lightingID)
string lighting_darknight
string lighting_default
proto native CGame GetGame()