Stencil shadows are only cast from entities. As I said, by default Gamestudio cannot cast dynamic shadows from world geometry.
What/Which shader should i use and how to get correct lighting on a level entity surface when it illuminated by an dynamic spot light and when it isnt illuminated?
Use a proper lighting shader like PSSM.