visiofx 10 Posted October 30, 2014 (edited) if Less than 4 east ai unit in marker 500m i want delete east ai unit marker in 500m sorry bad english i need help Edited October 30, 2014 by visiofx Share this post Link to post Share on other sites
Schatten 267 Posted October 30, 2014 _aiUnits = []; {if ((_markerPosition distance _x) <= 500) then {_aiUnits set [count _aiUnits, _x]}} forEach (units _aiGroup); if ((count _aiUnits) < 4) then {{deleteVehicle _x} count _aiUnits}; Share this post Link to post Share on other sites
visiofx 10 Posted October 30, 2014 (edited) work! but 4 ai unit delete if ((count _aiUnits) < 4 = less than? Edited October 30, 2014 by visiofx Share this post Link to post Share on other sites
Schatten 267 Posted October 30, 2014 if ((count _aiUnits) < 4 = less than? Yes. If number of AI units within marker is less than 4 then they will be deleted. Or do you need something else? Share this post Link to post Share on other sites
visiofx 10 Posted October 30, 2014 (edited) if ((count _aiUnits) < 3) then why 4 AI units within marker ai delete ? if there are less than 4 east units within 500m of a marker, then delete them Edited October 31, 2014 by visiofx Share this post Link to post Share on other sites