visiofx 10 Posted October 25, 2014 HI ! When all players within 500m of marker are dead then delete AI Help ME! Share this post Link to post Share on other sites
Schatten 267 Posted October 25, 2014 _isPlayerHere = false; {if ((_markerPosition distance _x) <= 500) exitWith {_isPlayerHere = true}} count playableUnits; if (!_isPlayerHere) then { {deleteVehicle _x} count (units _aiGroup); deleteGroup _aiGroup; }; Share this post Link to post Share on other sites
visiofx 10 Posted October 25, 2014 (edited) _isPlayerHere = false; {if ((_markerPosition distance _x) <= 500) exitWith {_isPlayerHere = true}} count playableUnits; if (!_isPlayerHere) then { {deleteVehicle _x} count (units _aiGroup); deleteGroup _aiGroup; }; Thanks Schatten! How to use? Edited October 25, 2014 by visiofx Share this post Link to post Share on other sites
Schatten 267 Posted October 25, 2014 (edited) Try this: // AI group creating _markerPosition = getMarkerPos "sy96"; sleep 1000; _isPlayerHere = false; {if ((_markerPosition distance _x) <= 500) exitWith {_isPlayerHere = true}} count playableUnits; if (!_isPlayerHere) then { {deleteVehicle _x} count (units _aiGroup); deleteGroup _aiGroup; }; Edited October 25, 2014 by Schatten Share this post Link to post Share on other sites
visiofx 10 Posted October 25, 2014 Thanks Schatten!!!!!! Nice Work! Share this post Link to post Share on other sites