OtterNas3 Posted June 19, 2014 Report Share Posted June 19, 2014 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 # ##################################### TheodoreCHill 1 Link to comment Share on other sites More sharing options...
CartoonrBOY Posted June 19, 2014 Report Share Posted June 19, 2014 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 More sharing options...
Sukkaed Posted June 19, 2014 Report Share Posted June 19, 2014 I would think that this gives nice performance boost? Link to comment Share on other sites More sharing options...
OtterNas3 Posted June 19, 2014 Author Report Share Posted June 19, 2014 Not as much as you might think ^^ Did that more for the "Zombie Apocalypse" feeling :D Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now