I'm using line of sight to see if a projectile can hit it's target. aiming is with a crossheir like an arcade on rails shooter. Players will aim said crossheir with the right stick, and if they can see the point their crossheir is at. they can fire.
I wanted an invisible door that players could pass though, but not projectiles. If I made said door solid players would not be able to pass. So I added the door object to the line of sight as a custom obstacle.
yet for some reason the weapon can still see the point. it works fine with a solid obstacle. (the black wall.)
Develop games in your browser. Powerful, performant & highly capable.
LOS works flawless.
https://www.dropbox.com/s/xbkyej0szutnf ... .capx?dl=0
You must have a logical flaw in your events.
Oh ok I see. My issue was I only had one line of sight set to solids. and added the custom obstacle thinking it would still include it. (I feel adding a custom obstacle should always work though. But whatever.)
I added a second LOS behavior and set it to custom like you did. and that fixed it.
Ahhhh, nope, when it is set to Solid, you can not add others to it.
But you still can do it with 1 LOS behaviour and obstacles set on Solid.
Enable/disable Solid is personal, per instance. As this example shows.
https://www.dropbox.com/s/q0z9707j5njjh ... .capx?dl=0
Also with LOS.
https://www.dropbox.com/s/cbe1i1xgbrecy ... .capx?dl=0
Click on a tile to Enable/disable Solid.