Jump to content
Sign in to follow this  
Grahame

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

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]); 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...