Thanks for your help - I tried it, but I don’t got a clue how to do it.
I saw a tutorial by Mathew Wadstein and he used this ‘Line Of Sight To’ node, but I can’t adopt it to my script and your suggestion. Is your answer or thought similar to the one of and Nebula Games Inc ?