For some reason, or perhaps for no reason at all, I can't get some surfaces on the floor to send a touched message when the player walks on them.
Here's the code...
I feel like I'm missing something obvious.
Here's the code...
Code:
touched: if(GetSenderRef()==block_n) { plrblock=1; SetSurfaceMat(block_n, on); SetSurfaceMat(block_e, off); SetSurfaceMat(block_s, off); SetSurfaceMat(block_w, off); return; } if(GetSenderRef()==block_e) { plrblock=2; SetSurfaceMat(block_n, off); SetSurfaceMat(block_e, on); SetSurfaceMat(block_s, off); SetSurfaceMat(block_w, off); return; } if(GetSenderRef()==block_s) { plrblock=3; SetSurfaceMat(block_n, off); SetSurfaceMat(block_e, off); SetSurfaceMat(block_s, on); SetSurfaceMat(block_w, off); return; } if(GetSenderRef()==block_w) { plrblock=4; SetSurfaceMat(block_n, off); SetSurfaceMat(block_e, off); SetSurfaceMat(block_s, off); SetSurfaceMat(block_w, on); return; } return;
I feel like I'm missing something obvious.