Hi I’m making an FPS game where the player has the ability to see enemies’ internal organs. I figured out a rudimentary means of doing X-ray, by reading another post on these forums (https://answers.unrealengine.com/questions/34243/how-to-get-a-simple-x-ray-vision-zbuffer-override.html). This method allowed me to put a heart into an enemy and have it draw in front of the enemy’s skin, so the player can see it and shoot at it. The problem is, if I run behind a wall, the enemy is occluded, but I can still see the heart. Is there a way that I can get the heart to draw in front of the one enemy mesh, but be occluded by all other meshes? Thanks.
Also, small thing, but in the future I will be implementing clothing, so I will need the heart to draw in front of that, too. So factor that into your response. Thank you in advance for the help!