3D Line of Sight?

I found this tutorial for a line of sight system:

But I am trying to implement the concept in 3D rather than just the 2D XY plane example in the tutorial. How can I take this tutorial and make it so that it takes height/elevation into account when drawing the shadow/dark areas? Hope that makes sense. Please show blueprint example and explain like I am 5. Thank you