I basically have a need for a scanner and I don't want to interfere with users on another parcel but I want to be able to run up to the boundaries. But how to?

As usual, any and all help gratefully received

These forums are CLOSED. Please visit the new forums HERE
Detect users ONLY on this parcel |
|
|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
02-20-2008 11:46
Just wondering how I can scan for agents that are only on the same parcel. I figure that it's possible since you can have security orbs and the like that won't cross boundaries. The land isn't forced to be owned by the same person who owns the land so I guess I can't use llOverMyLand right?
I basically have a need for a scanner and I don't want to interfere with users on another parcel but I want to be able to run up to the boundaries. But how to? ![]() As usual, any and all help gratefully received ![]() _____________________
<VOTE PROPOSITION 4968/>
http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-20-2008 13:19
There's no in-built way to limit sensors to a parcel, but you can do some tests in the sensor event handler to filter out some of the detected objects/avatars.
You can use llGetParcelDetails() to try to distinguish between parcels (if all values are identical, it MAY be the same parcel; if anything is different it definitely isn't the same parcel). It would be really nice if they added some kind of parcel identifier to the details you can retrieve, such as the coordinates of the very North-West corner of the entire connected parcel (this would be unique to a parcel since that 4x4m patch of land must belong to one and only one parcel), or even just assign some kind of new UUID every time a parcel's boundaries are changed. But for now we're stuck with a fair number of false positives (split a parcel exactly in half and you'll get two parcels with exactly the same details). I guess it is probably worth examining your real requirements though. Is it going to matter a great deal if you bleed into another parcel with the same owner? http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGetParcelDetails |
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
02-20-2008 13:22
See also: http://wiki.secondlife.com/wiki/LlOverMyLand
_____________________
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 |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-20-2008 14:00
llOverMyLand( llDetectedKey( x ) ) will work as long as the owner of the calling object is the same as the owner of the land.... if that's a group it needs to be deeded to the group, if it's rented from a single owner, that person needs to place the object.
a small caveat is that if two seperated parcels owned by the same source are both within the sensor sweep, they'll both report true. you could try get details like heewee suggests, and request the name or the parcel, but I can't remember if you need priviledges to get that function to work (I know some of the parcel functions require it) another idea would be llGetLandOwnerAt which shouldn't require deeding, assuming the neighboring parcels don't have the same owner, it should work for rentals. _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
02-20-2008 20:51
Thanks for the replies guys.
Let me elaborate a little on this: I want to scan for users who are nearby and play a video clip for them within the scan radius, but there is a cinema next door playing movies. I don't want to interfere with the programming that a user in there is watching. Both parcels are owned by the same user (well, same group) and the scanner isn't to be deeded either. I could set up a number of repeaters that work on a smaller radius, sure and put them in existing objects (walls etc) so that I'm not using more prims, but won't I be introducing more lag that way, and if I was to ever release this to others will they bother setting it up properly so they don't intercept and force their neighbours to watch what they are? I don't want to be responsible for griefing users with video that they don't want to see on their own parcels Sounds like some workarounds are required ![]() _____________________
<VOTE PROPOSITION 4968/>
http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-20-2008 20:55
OH! You don't even need the sensor then. Movies will only play on the parcel that has been set to their URL. Two parcels, even right next to each other, even owned by the same owner, do not interfere with each other and do not play simultaneously. Each will play for the avatars that are over their respective parcel.
|
|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
02-20-2008 21:00
These will, tested it already and it does. I'm not using the parcel's media settings, I'm doing it by playing the media for a specific agent (or number of) within the scan radius
_____________________
<VOTE PROPOSITION 4968/>
http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-20-2008 21:04
Are the media URLs set to the same value? Are they being set by script? This might be a script chat issue. If scripts with listens are setting the media URLs, make sure they are operating on different channels, or that they differentiate between each of their messages in some other way. Or use llGetObjectDetails() to find the position of a speaker, and the above methods to determine whether they are over the same parcel (since you seem to have control over the parcels, you CAN ensure they have different names or descriptions).
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-20-2008 21:07
Oops. Hmm. My understanding was that the media commands will still only apply to avatars over the same parcel as the object making the call, and that the agent is really more of a filter than anything. That's not the behavior you are seeing?
|
|
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
|
02-20-2008 21:10
If it's a case of just having to make sure that the two parcels have a different name then it's not a problem, and I can work it so that it works in my circumstances, I just don't want to ever allow anyone else to use it and find that they're using it nefariously to make people on different parcels watch what they want. You know, if someone is watching something of an adult nature for example, which another person in the next parcel may find offensive, I don't want to be responsible for forcing that on them.
I am able to walk a region and have a HUD based object report back to a 'server' on land that is owned by the server owner and have video played back for me. Only works in that region (we did discuss it a year or so ago I believe) so it does appear to work whether you're on the same parcel or not _____________________
<VOTE PROPOSITION 4968/>
http://jira.secondlife.com/browse/VWR-4968 For SecondLife Builders who need better mapping for better building |
|
Demon Lilliehook
Registered User
Join date: 8 May 2007
Posts: 25
|
07-16-2008 10:44
the answer is in this forum.
it can detect avatar on any land, private or group owned land, without deeding the object to the group. but i don't remember where i found it. but it on this forum, the answer u looking for. just like the campmaster does. |