I tried placing your code in my player_code() function, and inside the while() loop, as follows:

Code:
if (c_trace(my.x, vector(my.x, my.y, my.z - 1000), IGNORE_CONTENT | IGNORE_ME | SCAN_TEXTURE) > 0)
      {
         //if (str_cmpi(hit.texname, "MoatSide1_wmb_734") == 1)
         //if (str_cmpi(hit.texname, "water2") == 1)
         if (str_cmpi(hit.texname, "MoatSide1") == 1)
         {
            beep();
         }
      }



The name of the block after being imported into a castle WED file as a map entity from its own WED file is "MoatSide1_wmb_734". The name of this same block sitting in its own WED file is "MoatSide1". The name of the texture on this same block is "*water2", taken straight from standard.wad. Yet none of these are producing the beep(). Am I doing something wrong to make this happen?

Last edited by Ruben; 06/30/15 10:01.