Hi all,
I asked this in the beginners forum but noone could help me, so I posted it here.
I´m using this code to shoot at a box.mdl:

function spieler_schiesst() {
temp.X = 5000;
temp.Y = 0;
temp.Z = 0;
VEC_ROTATE (temp, CAMERA.PAN);
VEC_ADD (temp, CAMERA.X);
TRACE_MODE = IGNORE_ME + IGNORE_SPRITES + ACTIVATE_SHOOT;
TRACE (CAMERA.X, temp);
}


with the box having the following script:

action testbox {
my.frame = 1;
my.scale_x = 0.5;
my.scale_y = 0.5;
my.scale_z = 0.5;
my.enable_shoot = on;
my.event = testbox_event();
}


function testbox_event {
my.pan += 45;

}

The result:

Fatal Engine Error E 1513
WDL-Crash in spieler_schiesst

It works with and without the box in the level, the error only occurs when I shoot at the box and hit it.

The errormessage says "Fatal Engine error E1513" in the titel bar. The messagetext itself is:"WDL-Crash in spieler_schiesst"

What am I doing wrong???