The problem was in the keyboard code from post #12. This is what I had.
llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
It turns out that the first parameter is the person who's keys you want to take over. Sure enough since I'm the owner and was neaby when he touched the table, I received the dialog asking if I wanted to play. Oops.
This is the correct code.
llRequestPermissions(llDetectedKey(0), PERMISSION_TAKE_CONTROLS);
The llDetectedKey(0) is the key for the first avatar that touched the table. Once I made this change everything worked great. I went back and changed post #12 to reflect this difference so someone doesn't have this same problem later.
No comments:
Post a Comment