How to render custom depth pass with flipbooks?

How do you place your charters in the scene? On a mesh?

Hey guys,
I was trying to render characters behind walls, I followed this tutorial: UE4 - Tutorial - Render through Walls! - YouTube. My only problem is that the characters in my game are 2D sprites using flipbooks. So how can I achieve that same effect but on a flipbook?

The flibook itself is set to be a child of the mesh component, however we don’t assign anything to the mesh component itself. Each character is it’s own blueprint that derives from a C++ class. That what it looks like in the editor:

342500-screenshot-2021-06-26-114635.jpg