Hi,

I had a problem here with c_trace and that it doesnt jump to its scan_events function..

i think, it doesnt jump to the scan_event function.. but i dont know why..
in c-script it works perfectly! converted to lite-c.. its not working anymore smirk

code is:


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

function tuer()
{
var trace_target[3];

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

c_trace(player.x,trace_target,IGNORE_ME|IGNORE_PASSABLE|USE_BOX);
}

function scan_event()
{
if (event_type == EVENT_SCAN)
{
here is the opendoor code..
}
}


and on the door it hits:

action door_schalter()
{
my.emask |= (ENABLE_SCAN);
my.event = scan_event;
}


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