Page 1 of 1

CheckLOS for item to coords

Posted: Tue Sep 04, 2007 8:09 pm
by Yukiko
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?

Posted: Thu Oct 25, 2007 4:02 pm
by itec
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.

Posted: Sun Apr 06, 2008 8:46 pm
by Madman
I'm thinking maybe
CheckLOSBetween(x1,y1,z1,x2,y2,z2,realm)

But I agree that it would be kinda handy if CheckLosAt accepted items as well as mobs.