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:
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
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"