Hi!

You have to tell the engine, that you want to use stencil buffer shadows:
You can simply write

var shadow_stencil = on;

There are currently some restrictions about these shadows, so you might look into the manual for details ...