sys_marker("CT1");
you=NULL;
object_distance=c_trace(from_vec, to_vec, IGNORE_ME | IGNORE_PASSABLE | IGNORE_PASSENTS | USE_POLYGON);
sys_marker("CT2");
if(you!=NULL)
{...
}
sys_marker(NULL);
Try this code again and check the error message. There are three possibilities:
"Script crash in ...: SYS"
"Script crash in ...: CT1"
"Script crash in ...: CT2"