Jump to content

[RELEASE] ALL Streetlights OFF!


Recommended Posts

Easy solution:
 
open your dayz_server\init\server_functions.sqf
add this block  to the VERY BOTTOM after the last closing bracket };

[] spawn {
    private ["_position","_getAllServerStreetlights"];
    
    _position = getMarkerPos "center";
    
    _getAllServerStreetlights = (_position nearObjects ["StreetLamp",20000]);
    
    StreetLights = _getAllServerStreetlights;
    publicVariable "StreetLights";
};

open MPMissions\YOURMISSIONNAME\init.sqf
add this block to the VERY BOTTOM:
 

if (!isDedicated) then {
    [] spawn {
        waitUntil {!isNil "dayz_animalCheck"};
        {
            if (!isNull _x) then {
                _x switchLight "OFF";
            };
        } forEach StreetLights;
    };
};

Moo,
Otter
 

#####################################

#                      Support my work                      #

#                                    &                                #

#                                Donate                           #

#####################################

btn_donate_LG.gif

Link to comment
Share on other sites

Great little script. Experiencing dark(er) nights harks back to the original vision for DayZ. It's nice to see others interested in the dark side of the apocalypse.

 

I use AEG combined with air raids to randomly destroy the power grid which results in sudden blackouts.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...