Jump to content
Sign in to follow this  
visiofx

delete east

Recommended Posts

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 by visiofx

Share this post


Link to post
Share on other sites
_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

work! but 4 ai unit delete

if ((count _aiUnits) < 4 = less than?

Edited by visiofx

Share this post


Link to post
Share on other sites
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

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 by visiofx

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×