function based player_build

This commit is contained in:
raymix
2014-08-07 13:03:14 +01:00
parent 676bb91122
commit 361ab3a3e5
13 changed files with 834 additions and 637 deletions

View File

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