@Ruben, try a beep/error() before the c_trace, and see if that works.
I put a beep before the c_trace, and I am definitely hearing a bunch of beeps over and over. However, the c_trace is not catching anything to initiate its own beep. Here is the code I tried:
...
action player_code()
{
...
while(1)
{
...
//beep(); // DEFINITELY IS SOUNDING OFF WHEN UNCOMMENTED.
if (c_trace(my.x, vector(my.x, my.y, my.z - 1000), IGNORE_ME | SCAN_TEXTURE) > 0)
{
if (str_cmpi(hit.texname, "*water2") == 1)
{
beep();
}
}
...
wait(1);
}
}
I am using the texture from standard.wad titled *water2 for the water block in question. Does anyone know why the beep() sounds before the c_trace(), but not in the c_trace()?