Jump to content
Sign in to follow this  
Antorugby

AllUnits Distance

Recommended Posts

Hello guys, I want to select every units in a set area around the player and make them move to the player, this is what I tried without luck:

enemycrash= nearestObjects [player, ["MEN"], 1000];
{_x domove getpos player} forEach enemycrash;

enemycrash= position player nearObjects ["MEN",1000];
{_x domove getpos player} forEach enemycrash;

None of this is working, any help?

Share this post


Link to post
Share on other sites

enemycrash = nearestObjects [player, ["CAManBase"], 1000];
{
if (side _x == east) then {
	//waypoints here
};
} forEach enemycrash;

This should work.

As for sending them to player, I think you will be better off using waypoints.

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  

×