|
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
|
05-25-2006 11:28
Basically I need to know what a script would look like in order to make sure two objects that collide are in fact created by me and not created by someone else. But these objects will need to be owned by other people at the same time. So in other words: When collision is detected, Object 1 needs to know that object 2 is authentic and not a "recreation" by someone else. And these objects will be owned by other players. Would this use my UUID to make sure both are created by me? If so, what would this script look like? I have messed around with the llRequestAgentData(llGetCreator(), DATA_NAME); and I can't seem to get it working correctly. Thanks 
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
05-25-2006 12:11
The easiest way might be, if possible, to set the name of the object to the creator's key, then use if(llDetectedName(0)==llGetCreator()) { //It's valid! }
Otherwise... depends on how fast. Having a shared channel for chat, after collision say a key phrase that includes the creator key on that channel, filter the listen only for the key of the thing you detected in the collision (llDetectedKey(0)) within the next 1s or so. There isn't an llDetectedCreator() which is what you really want sadly.
|
|
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
|
05-25-2006 14:17
From: Eloise Pasteur The easiest way might be, if possible, to set the name of the object to the creator's key, then use if(llDetectedName(0)==llGetCreator()) { //It's valid! }
Otherwise... depends on how fast. Having a shared channel for chat, after collision say a key phrase that includes the creator key on that channel, filter the listen only for the key of the thing you detected in the collision (llDetectedKey(0)) within the next 1s or so. There isn't an llDetectedCreator() which is what you really want sadly. lol llDetectCreator would be nice. As far as the name goes I could do that. But I think an easy work around would be for someone to create a new object and name it as my id. And the process happens to quickly for chat to be effective I think. If I used it I would also need encription. I guess some stuff will have to go on the shelf until Havok2. If that even supports it. lol
|
|
Draco18s Majestic
Registered User
Join date: 19 Sep 2005
Posts: 2,744
|
05-25-2006 15:45
From: Sean Martin lol llDetectCreator would be nice. As far as the name goes I could do that. But I think an easy work around would be for someone to create a new object and name it as my id. And the process happens to quickly for chat to be effective I think. If I used it I would also need encription. I guess some stuff will have to go on the shelf until Havok2. If that even supports it. lol Encryption can be done, use llXorBase64 or whatever it's called.
|