Jump to content

DZSA-Style broken windows on Livonia or maps using Livonia assets


Grahame

Recommended Posts

Want the DayZ SA broken windows effect for Livonia or maps that use its buildings (like CUP's Chernarus 2020 map) then run this script on your server on restart?

{  
    _house = _x; 
    _hitPoints = "isClass _x" configClasses (configFile >> "CfgVehicles" >> (typeOf _house) >> "HitPoints");  
   
    {  
        _hitpointname = (configName _x);  
        if ("Glass" in _hitpointname) then { 
            _house setHitPointDamage [_hitPointName, 1];  
        }; 
    } forEach _hitPoints; 
} foreach ((getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition") ) nearObjects ["House", worldSize]); 

 

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...