How do I make a cone reveal a material?

Hello All,

I’m trying to make a translucent character that, when a flashlight is pointed at them, the part of them that is hit by the light becomes opaque, but the rest of the character is still translucent.

Example: a flashlight is pointed at the character’s legs - the legs are visible but the torso is not.

I found a video that looks like it does something similar, but I could not find an explanation on how to do it nor could I find it for sale on the marketplace.

Here is the video: - YouTube

Any advice would be greatly appreciated. Thank you!

There was a livestream from epic covering this type of effect. Technically the stream example is making something invisible when you look at it, but it should be easy to invert the effect.

This is very good, got it to do what I wanted for the most part. Unfortunately, it’s either a sphere, which is not what I want, or I convert to camera space to make a “cone”, but then it is not consistent for two players… Any ideas? Thanks!

please dont spam your questions. you also have this question open at the following link.

What if you used draw line 3d. the p0 and p1 are the start and end points of the line which could be fed in via blueprints. each player would draw it’s own line with p0 being it’s camera position in world space and p1 would be some point in front of the camera (Same math that you do for most line tracing).

Hey , sorry, I realized after the fact that I wasn’t sure blueprint scripting was the correct forum to post the question in. I’m not sure the relation between material instances and blueprints, so I posted it in rendering as well.

Not sure how I can delete, but I will gladly delete in the other forum.