Hi guys, im having some problem dealing with detecting checkpoint. I used ENABLE_IMPACT and ENABLE_ENTITY, but the problem is what if i only want the check point to detect the player?

Below is what i did:

function checkpoint1_event(){
add_laps_player();
time_left += 20;
my.flags |= PASSABLE;
wait(1000);
my.flags &= ~PASSABLE;
}

action checkpoint1(){

my.emask |= ENABLE_IMPACT | ENABLE_ENTITY;
my.event = checkpoint1_event;
}

What can i do to prevent the AI car from activating the time extension and increment of lap function?

I tried doing condition

while(player){
...
//activate checkpoint
}

but it doesn't seems to work.
What other methods can i try? Thanks.