Hello, I never could understand c_scan very well, Again i came across it. Please help me.
In my situation there are 3 enemies standing side by side with this action.

Code:
if(vec_dist(my.x,player.x)<500)
{
	if(c_scan(my.x, my.pan, vector(360, 60, 500), IGNORE_ME )>0)
	{
		if(you == player)
		{
			you.z+=1;
		}
		else
		{
			you.z+=3;
		}
	}
}



the 2 other enemies increases there z but It doesn't detect the player unless i go closer then the 2 enemies standing besides?
Now the problem i think is that s_scan scans the closest object which in my case is another enemy with enable scan set.
so it sets the you to enemy and returns rather then continueing the scan to find the player.
And am i right that s_scan as soon as finds closest object terminates scanning and returns the result? I don't get this s_scan at all frown