CheckLOS for item to coords
CheckLOS for item to coords
I was looking at the debug log the other day and found a bug caused by a script that was using the CheckLosAt( character, x, y, z ) to check LOS from an item to coords. This function returns an error when you try to use an itemref rather than a mobref. Could this function be expanded to support both item and mob references?
Agreed, it should accept itemrefs or any struct that has x y z members. Either that, or in my opinion even better if we would have function CoordinateLOS(x1, y1, z1, x2, y2, z2).
Currently POL has CheckLineOfSight( object1, object2 ) and CheckLosAt( character, x, y, z ), but there is no way to test line of sight between two coordinates, without creating an item to both ends first and that is just unnecessary.
Currently POL has CheckLineOfSight( object1, object2 ) and CheckLosAt( character, x, y, z ), but there is no way to test line of sight between two coordinates, without creating an item to both ends first and that is just unnecessary.