Hey there I have a function that scans for an entity and I simply need to have it clear the you pointer if a skill doesn`t match. I can`t seem to get it to work... can anyone help me out; here it is:
function alert_infantry()
{
c_ignore(1,3);
c_scan(my.x,my.pan,vector(360,0,10000),SCAN_ENTS|IGNORE_ME|IGNORE_PASSABLE|IGNORE_WORLD);
if(you)
{
if(your.player_assign != my.player_assign)
{set(you,INVISIBLE);}
if(your.player_assign == my.player_assign)
{you = NULL;}
}
}