mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 09:59:18 +03:00
function based player_build
This commit is contained in:
10
SQF/dayz_code/actions/player_build_countNearby.sqf
Normal file
10
SQF/dayz_code/actions/player_build_countNearby.sqf
Normal 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
|
||||
Reference in New Issue
Block a user