Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script to allow sharing without removal

Chris Widget
Widget Isles @ the Edge!
Join date: 22 Jan 2006
Posts: 67
09-08-2006 06:14
This has probably been discussed a zillion times in the past, so I apologize in advance..

Issue: Have "props" on my sim that I want people to be able to use, like a chainsaw that really runs, but I don't want them to be able to "take" the prop.

How do I allow anyone to control a device who belongs to a group for instance, but prevent them from taking, copying, etc.?
_____________________
---
Chris Widget
Non
Ayrn Wake
Registered User
Join date: 7 Jan 2006
Posts: 39
09-08-2006 06:40
Can't think of a way of really doing this, but...

You could try getting the sim info, and stopping the stuff from working if its not in your sim. However, that really only disables any scripting part of it, but, you could always have the prop no mod and put a tranparent prim surrounding it - when it leaves the sim and gets diasabled, the prim becomes opaque making it look.. well, like a wood box or whatever.


Thats just an idea though, perhaps another scripter can write that up for you.
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
09-08-2006 07:43
Well...if they're wearables as I'm assuming there are...I don't think there is a way to keep them from taking them with them since it has to be in their inventory to be worn....unless you made the prop part of a vehicle that they sat on to use.

I'm not sure tho, but would an llDie() command work in an attachment to remove it from inventory since it would be killing the only copy? If so you could make it check the sim on rez or state_entry as suggested before, and if it's in the wrong one it just dies. So when they go to wear it, it would just poof.
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
09-08-2006 07:44
There are a couple of solutions depending on what we are talking about - there is - to the best of my knowledge - no real solution to it, so you must improvise.

One way would be to time bomb things - just have a best before date in your script and have it not functioning after a day or so. The best before date could be set in the on_rez startup parameter by a dispensor when someone clicks on the dispensor. This way I do my demo models.

use llDie() for non attachments - for attachments .... unlink and llDie() the parts except for the root - maybe also a llDie() when un-attaching.

There are numerous fun ways to disable an item after a while :)

Maybe add group check code and region/sim check code instead of a time bomb if you want it to be permanently usable in your sim but nowhere else.
Chris Widget
Widget Isles @ the Edge!
Join date: 22 Jan 2006
Posts: 67
09-09-2006 07:07
Thanks for all the great info you have given me bunches of ideas to work on. Thanks!
_____________________
---
Chris Widget
Non