Custom depth path ignore other Actors/Characters

Hallo,

I have a question about Custom depth Path. Is there a way to ignore other Actors?

For Example:
grafik

It would be perfect to ignore this sword or other characters.

I tried googling this, but unfortunately found nothing that helps me.

Thank in advance.

Greetings

Roknix

I dont know if there is another way but i have found a solution.

I’m checking if the Actor is in the Range of the Camera. If Yes I’m doing a Linetrace to the Camera. If it got blocked I’m using a Custom Stencil for the Mesh.

The Material Checks for this Stencil.

Seems to work good.