In order to have less collision checks in my game, i'm trying to use Line Of Sight to disable collisions whenever Player, Enemy1, Enemy2 or Enemy3 is not in the block objects Line of Sight.
As you can see in the Demo.capx file, it works just fine with the current enemies, but if i create another instance of any of my enemies, it stops working.
The invisible/visible is only for visual illustration.
https://gofile.io/?c=vZP4Os
Could someone download the Demo.capx file, and write the right code, so it would work even when i create multiple instances of the same enemy.
Thanks.