c_scan(me.x,my.pan,360,vector(360,0,200),SCAN_ENTS|IGNORE_FLAG2);

the my.pan in the c_sacn was the mistake.
but you do a realy complicatet way. i made this much easier.

try this witch EVENT_BLOCK for the wall
the wen the event is trigerd make the bullet INVISIBLE and remove the bullet. like this:

Code:
function wall(){
set(my,INVISIBLE);
set(my,PASSABLE);
wait(4);
ent_remove(me);
}

action bullet(){
my.push = 10;
my.emask |= (EVENT_BLOCK|EVENT_IMPACT|EVENT_ENTITY);
my.event = wall;
while(1){
c_move(my,vector(20,0,0),nullvector,GLIDE,IGNORE_FLAG2);
wait(1);
}}


the EVENT_IMPACT trigger only by entitys with lower push
the same with the EVENT_ENTITY.
i hope i can help you with this.
greets episch

Last edited by episch; 08/19/09 22:06.