PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
CheckLOS for item to coords

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Wed Sep 05, 2007 12:09 am    Post subject: CheckLOS for item to coords Reply with quote

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?

Author Message
itec



Joined: 10 Feb 2006
Posts: 35
Location: Finland

PostPosted: Thu Oct 25, 2007 8:02 pm    Post subject: Reply with quote

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.

Author Message
Madman
POL Developer


Joined: 05 Feb 2006
Posts: 30

PostPosted: Mon Apr 07, 2008 12:46 am    Post subject: Reply with quote

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.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty