okay I used your example:
Quote:
function door_event
{
if(vec_dist(my.x,player.x) <= 200) && (vec_to_screen(me,camera) ==1)
{do action;}
}
and when I compile, then run, it crashes after the load screen a few frames in saying bad:
if(my.clipped != on && vec_dist(my.x,player.x) <= 200 && vec_to_screen(me,camera) ==1)
wich is the IF statement