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
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;
}