Sound effect playing when bumping into "X" Tiles

I'm looking for a way to play a se when the player bumps into the impassable tiles. For instance if the player is facing a wall and you press the directional button towards the wall the se would play each time the button was pressed. Is this possible? I know it can be done with events but that's a bit much.
I believe there are scripts that do that. If nothing else, I think it's Shaz that has a region script. Set the boundaries to a region and create an event that plays the sound effect.
I have not found any scripts that do this and with the region thing wouldn't work because you have to walk on the region to play the effect, I need it to play when touching the tile adjacent to, not on top.
I'll look when I can get on my computer, but I know I've done this somewhere.
Much appreciated!

Edit: Managed to do it! that's under Game_Player btw. 

Code:
  #--------------------------------------------------------------------------  # * Move Straight  #--------------------------------------------------------------------------  def move_straight(d, turn_ok = true)    if passable?(@x, @y, d)    @followers.move    else    Audio.se_play("Audio/SE/bump" )    8.times { Graphics.update }    end    super  endend

Original thread: https://forums.rpgmakerweb.com/threads/sound-effect-playing-when-bumping-into-x-tiles.39336/