How to code infrared

Does anyone know how to write code that will allow players to see through walls (similar to Hanzo’s Sonar Arrow or Widowmaker’s Infra-Sight [her Ultimate] in Overwatch) when the player presses “Q”? I want to implement a feature like this into a game but I have no idea where to even start. It can be in Blueprints or C++. I just need to know how to do this. Thanks!

All you have to do is check the box saying Render Custom Depth. Then in the post process you can render all pixels where the custom depth buffer is set to red.

HTH