mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-16 05:02:57 +03:00
Alter DZE_SafeZonePosCheck to allow custom radii
This commit is contained in:
@@ -12,7 +12,7 @@ while {_counter < _amount} do {
|
|||||||
_type = "swarm_newBase"; //"_unitTypes call BIS_fnc_selectRandom;
|
_type = "swarm_newBase"; //"_unitTypes call BIS_fnc_selectRandom;
|
||||||
//_type = "Pastor";
|
//_type = "Pastor";
|
||||||
_position = [position _player,50,100,0] call fn_selectRandomLocation;
|
_position = [position _player,50,100,0] call fn_selectRandomLocation;
|
||||||
if(_position call DZE_SafeZonePosCheck) exitWith {};
|
if ([_position] call DZE_SafeZonePosCheck) exitWith {};
|
||||||
_agent = createAgent [_type, _position, [], 0, "NONE"];
|
_agent = createAgent [_type, _position, [], 0, "NONE"];
|
||||||
|
|
||||||
_agent setVariable["agentObjectSwarm",_agent,true];
|
_agent setVariable["agentObjectSwarm",_agent,true];
|
||||||
|
|||||||
Reference in New Issue
Block a user