Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sensor build/server

Jaxith Zapatero
Registered User
Join date: 24 Dec 2008
Posts: 20
03-29-2009 12:32
not sure if this is where i should put this since im yelled at by someone everytime i post here for help but im trying to make a sensor system that detects something being dropped on it and who dropped it then to record that and send it to a "main server" in another object and to trnasfer that data as a message to a message board. ive got some parts down but most i cant figure out. if someone can point me in the direction of a script or scripts that i could use for this that would be much appreciated
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-29-2009 12:56
Detecting the touch is easy, and so are the parts about communicating with a server and a massage board. I may be wrong, though, but I don't think there's a way to figure out who dropped an object on your sensor. The same question has come up in this forum a few times recently, though, so you might try wading through threads from the past month or so.
Jaxith Zapatero
Registered User
Join date: 24 Dec 2008
Posts: 20
03-29-2009 13:01
its not a touch that starts it. what i have so far is an object that is dropped and tells the sensor something and the sensor records that as simple chat right now but i need to try and change that into the sensor sending data to a server and say add a number to the proper av name and send that data to an info board
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-29-2009 14:18
As I said, all of that is easy except figuring out which avatar dropped the object on your detector. That part can't be done, as far as I know.
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
03-29-2009 14:41
You can determine the creator of the object. But that's about as far as you can get. When someone drops an object on your sensor, you become the owner of the object and there's no way to figure out the last owner - unfortunately.
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
03-29-2009 15:41
By 'dropped on' do you my physically contact? or dropped into the objects inventory. If you mean dropped on, you can get all the information you want using collision functions.
_____________________
My tutes
http://www.youtube.com/johanlaurasia
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
03-29-2009 17:07
But if, by "dropped on," you mean added to the object's inventory, one way -- though not foolproof -- of finding out who actually added the item is to make them touch the prim to turn llAllowInventoryDrop on and also start a timer to turn it off again after a short interval or when the inventory changes.

You could combine that with something like the GetNewInventoryName() function at http://lslwiki.net/lslwiki/wakka.php?wakka=ZenMondo, and also record the time, too, if you wanted.

Like I say, it's not foolproof since I could hang about until I saw someone touch the prim and then quickly drop my object in before they got a chance to drop in theirs, but I'm not sure why -- under normal circumstances -- I would want to do such a thing.