I am currently having a problem with my shooting script. I have looked everywhere and spent the last 3 hours searching the manual but I still couldn't find anything that could help me. For some reason my code doesn't remove the bullet whenever it collides with level geometry. I currently have the passable flag set on which I believe to be the problem. However, I NEED the flag to be on for my game to function properly. So I am asking if there is anything that I can use in a statement to test for block collision? I am not very good at explaining what I mean, so here is an example.

Code:
while(vec_dist(my.x,block) > 20)
{
c_move(me, vector(0,60*time,0), nullvector,IGNORE_FLAG2+USE_AABB);
	wait(1);
}
	ent_remove(me);
	snd_play(bullet_hit,100,0);
}



Notice how in the "while(vec_dist(my.x,block)" statement, I used the word block to represent level geometry. Something like this would be most useful and I am sure 3DGS has this feature. I just cant find it.