Jump to content

Miranda Freenote

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I apologize if I was too vague. I wrote the original post at 3AM, and I guess I could have been more specific. I do know the UUID of the creator, I just replaced it with XXXX's in the example because I didn't feel comfortable posting the actual key numbers in the forum. Perhaps I am being over cautious. When I said the scanner searches by name I meant it seaches for an object with a specific name. For example it checks to see if there is an object nearby named " ABC" and then checks to makes sure that "ABC" is made by a certain person by checking the key of ABC's creator. Otherwise, any prankster could drop an object named ABC near the sensor and set it off. I had tried some code simmilar to the ones suggested in this thread but didn't have the sytax quite right. I am an amature with code and LSL is picky about where to put commas and parenthesis. Anyway, I inserted the code LepreKhaun suggested into my script. // To check all detected objects sensor(integer detected) { while(detected--) { if (llList2Key(llGetObjectDetails(llDetectedKey(detected), [OBJECT_CREATOR]), 0) == "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX") { // You have found an object created by "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" } } } This is exactly what I needed. Thank you very much for your help.
  2. I'm working on a script that scans for a certain object by name and sends a message if that object was made by a specific creator. When I wrote a similar script that checked to see if the object was owned by a specific person I used: //a bunch of script including a llSensorRepeat sensor( integer detected ) { if(detected--) { if (llGetOwnerKey(llDetectedKey(0) ) == "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX") //the XXXX is the UUID of the Owner I was screening for. //more script followed telling what to do if the object was owned by that avatar. The above lines of script worked perfectly when screening for an object owned by a certain person, but I'm having trouble converting it to a script that screens by creator name because there is no such command as "llGetCreatorKey". I believe that I need to use llGetObjectDetails and OBJECT_CREATOR, but I have tried dozens of ways of substituting those commands into the above lines of script and I always get errors. If someone could tell me what the correct equivilant to llGetCreatorKey is and how it would fit in these lines of script I would appreciate it greatly.
×
×
  • Create New...