How to hide a mesh which overlap an other

Hi!

I would like to create a enterable vehicle which you can walk inside.

If the vehicle overlap a mesh like this:

http://puu.sh/nd0F4/a39a2ee2ce.jpg

I would like to hide the mesh when you are inside the vehicle to avoid that the mesh overlap decor inside the vehicle, but it should be visible trought a window

http://puu.sh/nd1ai/b3343a3bbc.jpg

http://puu.sh/nd1iX/39bc10b52c.jpg

A bit like in arma 3 in FPS view when you are in a vehicle:

Here in TPS view:

http://puu.sh/nd2ad/4098022f94.jpg

Here in FPS view:

http://puu.sh/nd2da/f7f9566808.jpg

Thank’s for helping!

Edit:

After few researches it seem that the disable depth test function don’t work on ue4, is there any alternative?

For now, I found an alternative, cause we can’t use negative values on the pixel depth offset, I will add a positive value to the pixel depth offset to all my meshes except the vehicle when I’m inside of it.

If anyone has a better trick I would appreciate :wink: