Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Property line coordinates

Random Torok
Registered User
Join date: 19 Mar 2007
Posts: 33
06-04-2007 14:52
Ok tried posting this the other day but it never showed up in the forums.

I want to be able to have a script that will determine the coordinates of the property lines of a parcel of land.

I purchased a tool that will mark the property lines so it must be able to be done. I just can't find the function that does it.

Any help appreciated.
RT
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
06-04-2007 15:58
Several of the functions in the Land Group in the Wiki might be of interest to you:

llGetLandOwnerAt()
llOverMyLand()
llGetParcelDetails()
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
06-05-2007 09:38
Basically you create a script that when activated does the following:

1. Check the owner of the land it is on.
2. Move a small amount forward.
3. Check to see if the land under it is the same owner as #1
4. If yes, continue moving.
5. If not the same owner, either rotate and move forward or just move sideways.
6. Repeat steps until you have encircled the whole property.

Throw in some code to mark the current owner's land, or simply remember the corner points in an array.

This will get one continuous boundary, if there are more than one for your property it will need to do more checking.. but very similar.
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
06-05-2007 09:44
I don't think you even need to do all that. The llGetLandOwnerAt and llGetParcelDetails calls take a vector position - there's no need to move the object that contains the script..

The tricky part, I think, is being able to detect two neighboring parcels with the same owner. Remembering & comparing some parcel details will probably catch a lot of that but not all of it.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
06-06-2007 10:59
Parcles are always on 4m boundrys, so you only have to check every 4m