mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 01:49:19 +03:00
#894 allow tanktraps on road, global toggle on road building
DZE_BuildOnRoads toggle (default False)
This commit is contained in:
@@ -372,8 +372,10 @@ if (_hasrequireditem) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// No building on roads
|
// No building on roads for most items
|
||||||
if (isOnRoad _position) then { _cancel = true; _reason = "Cannot build on a road."; };
|
if (!DZE_BuildOnRoads) then {
|
||||||
|
if ((isOnRoad _position) and (_classname!="Hedgehog_DZ")) then { _cancel = true; _reason = "Cannot build on a road."; };
|
||||||
|
};
|
||||||
|
|
||||||
// No building in trader zones
|
// No building in trader zones
|
||||||
if(!canbuild) then { _cancel = true; _reason = "Cannot build in a city."; };
|
if(!canbuild) then { _cancel = true; _reason = "Cannot build in a city."; };
|
||||||
|
|||||||
Reference in New Issue
Block a user