HiHo,


I'm now on learning about c_trace, and i found something im wondering..

I can trace something and work with events, or i can work like this:

Quote:

result=c_trace(blabla)
if (result == 1)
{
bla
}


so whats better? whats faster? does it make a difference?

and while we are on trace.. i need a little help with my code
Quote:

function tuer()
{
var trace_target[3];

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

c_trace(my.x,trace_target,IGNORE_ME|IGNORE_PASSABLE|IGNORE_MODELS);
}

void main()
{
level_load("sgcenter.wmb");
on_t = tuer;
}


I just want to find a door, a door i made as an entity and yeah.. its always gettin the error: "Crash in Tuer, Error 1513"


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