Marianne Little Posted January 15, 2020 Share Posted January 15, 2020 I have a hot tub that has adult animations. I find no way to control access to owner only or group only. The hot tub is mod and copy, but the scripts are not. I assume that removing the adult animations will lead to script error, because the scripts can't find the animations. Can I buy a script that control the access only, so others get the message they can't sit here/can't use this? Or will this destroy the animations? I will not place it out in moderate land as an invitation for random people to "have a good xxx time here". I am looking for something so I don't need a security orb. Link to comment Share on other sites More sharing options...
Kardargo Adamczyk Posted January 15, 2020 Share Posted January 15, 2020 hiya, the following script should work..:) you can set the access level at the first iine of the script. string Access = "group"; // Access Types; // Public = Everyone can use // Group = Group Only // Owner = Owner Only default { state_entry() { llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); } changed (integer change) { if (change & CHANGED_LINK) { key agent = llAvatarOnSitTarget(); if(agent != NULL_KEY) { if (Access == "Owner" && agent != llGetOwner()) { llWhisper (0, "Sorry, access restricted to owner only"); llUnSit(agent); } else if (Access == "group") { if(llSameGroup(agent)) { return; } else { llWhisper (0, "Sorry, access restricted to group members only"); llUnSit(agent); } } } } } } Good luck, Dargo 1 Link to comment Share on other sites More sharing options...
Marianne Little Posted January 15, 2020 Author Share Posted January 15, 2020 This worked perfect! 😍 Thank you! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now