Disallow salvage in DZE_SafeZonePosArray locations

by request of JohnnyBravo666 on the epoch forums
This commit is contained in:
icomrade
2017-01-18 16:43:23 -05:00
parent 0d2f96b299
commit 490fb90303
4 changed files with 17 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ BIS_Effects_startEvent = {
if (((vehicle player) == (_this select 0)) && {(vehicle player) != player} && {player in (crew (_This select 0))}) then {
_cancel = false;
{
if ((isInTraderCity || !canbuild) && {(player distance (_x select 0)) < (_x select 1)}) then {_cancel = true;};
if ((isInTraderCity || !canbuild) && {(player distance (_x select 0)) < (_x select 1)}) exitWith {_cancel = true;};
} count DZE_SafeZonePosArray;
player action ["getOut", (_this select 0)];
if (!_cancel && {!((_this select 0) iskindof "car")}) then {