Hmmm, now my code looks like this:

Quote:
function sonar_event()
{
spawn_sprite(); <- Thats for testing, if it should jump to sonar_event, it should create a bullethole somewhere smirk
}


in the door on WED included on Behavior -> Action:

Quote:
action door_schalter()
{
my.emask |= EVENT_SONAR;
my.event = sonar_event;
}

Quote:
function tuer()
{
VECTOR trace_target[3];

vec_set(trace_target,vector(1000,0,0));
vec_rotate(trace_target, player.pan);
vec_add(trace_target,player.x);

c_trace(player.x,trace_target,IGNORE_ME|IGNORE_PASSABLE|USE_BOX|ACTIVATE_SONAR);
draw_point3d(target,vector(50,50,255),100,3); <- this is still testing, but shouldnt have any effect on the result.. right?
}

void main()
{
...
on_t = tuer;
...
}



I Tried so much out now, all the replies here on the Forum i tested, but nothing works..
strange smirk


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875