modular build code optimization + some extras

This commit is contained in:
raymix
2014-08-15 05:40:26 +01:00
parent 59124e6eef
commit c66b229a96
10 changed files with 61 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
// disallow building if too many objects are found within 30m
// disallow building if too many objects are found within 30m (by default)
private ["_cnt"];
_cnt = count ((getPosATL player) nearObjects ["All",30]);
_cnt = count ((getPosATL player) nearObjects ["All",DZE_checkNearbyRadius]);
if (_cnt >= DZE_BuildingLimit) exitWith { //end script if too many objects nearby
DZE_ActionInProgress = false;
cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];