CheckLOS for item to coords

Archive of the older Feature Request Forum Posts
Locked
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

CheckLOS for item to coords

Post 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?
User avatar
itec
Novice Poster
Posts: 42
Joined: Thu Feb 09, 2006 11:48 pm

Post 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.
Madman
POL Developer
Posts: 62
Joined: Sun Feb 05, 2006 7:20 pm

Post 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.
Locked