From 7b37ed7c07e61635e5584bedee15bc3e76963fad Mon Sep 17 00:00:00 2001 From: vbawol Date: Wed, 27 Sep 2017 15:59:38 -0500 Subject: [PATCH] fix radio active site --- Sources/epoch_code/compile/setup/masterLoop/Event5.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/setup/masterLoop/Event5.sqf b/Sources/epoch_code/compile/setup/masterLoop/Event5.sqf index 99d229a2..4f832f40 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/Event5.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/Event5.sqf @@ -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); }; };