fix radio active site

This commit is contained in:
vbawol 2017-09-27 15:59:38 -05:00
parent f122c2db0a
commit 7b37ed7c07

View File

@ -18,7 +18,8 @@ if (_outOfBounds) then {
// radiated objects or locations nearby
if !(_nearbyRadioactiveObjects isEqualTo []) then {
// add extra rads based on intensity and distance from site.
_radsLevel = ((_nearbyRadioactiveObjects select 0) getVariable ["EPOCH_Rads", 0]) / (player distance _radioActiveSite);
_radioActiveSite = _nearbyRadioactiveObjects select 0;
_radsLevel = (_radioActiveSite getVariable ["EPOCH_Rads", 0]) / (player distance _radioActiveSite);
};
};