SphereCommunity
Line of Sight and Floors - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Line of Sight and Floors (/Thread-Line-of-Sight-and-Floors)



Line of Sight and Floors - Gil Amarth - 06-26-2013 08:04 PM

I´m wondering if it is possible to block line of sight for floors.

Because actually a player can see an enemy in a floor below and shot him with a bow, or using any skill with LOS restriction without any problem.
It´s a problem for tall buildings if players can mess with chars and objects of other floors.

Any solution? Thanks in advance.

I had tried with CAN = CAN_I_ROOF|CAN_I_BLOCKLOS, in one of my roof tiles. But it seems CAN_I_BLOCKLOS it doesn´t work this flag, only activates CAN_I_ROOF.

I have tried with both AdvancedLos=03, and AdvancedLos=0 at Sphere.ini, wih no success, it seems that this flags doesn´t work anymore. :|


RE: Line of Sight and Floors - Mordaunt - 06-26-2013 09:43 PM

Without testing the flags, the only other thing I could suggest would be to make a small script that checks the Z position of the target relative to that of the attacker.


RE: Line of Sight and Floors - Gil Amarth - 06-26-2013 10:27 PM

Yes, but that is a option, but It is not only the combat, skills like steal, magery, opening containers...

And also is possible drag and drop items in other floors, and there is no trigger to prevent drag and drop, I think.