Try this insead of c_scan
if(200 > vec_dist(my.x,player.x))//player is closer than 200 quants
{
if(c_trace(my.x, player.x blah blah blah)//we can see the player from our position
{
beep();
}
}
Anytime the player is in a spot where he could be seen from your spot the system should beep. See if that will happen in your code and go from there. If that does work throw in some code and see if you are in a correct angel to have seen the player (that code would see the player even if he was behind you)
I generally try not to use events because of problems like this. That code should work however it does not because ... well none of us know.
Last edited by FoxHound; 04/12/11 23:01.