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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...