These forums are CLOSED. Please visit the new forums HERE
Group-only Teleporting |
|
|
Robert Pegler
The Ever Changing.
Join date: 21 Mar 2006
Posts: 3
|
07-12-2006 06:03
Hi, I've been trying to figure out a way to make a teleport object only usuable by a certain group. Is there a way to do this?
|
|
Bitzer Balderdash
Dazed and Confused
Join date: 21 Dec 2005
Posts: 246
|
07-12-2006 06:12
That depends on your teleport object type, but, generally, yes.
there is code in /54/47/119663/1.html that will (approximately) show you how to do a group check - that one is touch, but you could adapt the check to pretty much any interaction. However..... if you have a sit-target teleporter, then once the person has sat down it it too late, since they are already at the destination. The most fun solution to that problem I have seen was that the base item rotated itself before unsitting them at the far end, so that it fired them straight down into the ground. That way, when tehy un-sat, the were ejected from the ground basically back where they had started. If it is a setPos (or warppos) based teleported, it is much easier, since you just have to not trigger the movement routine. Another way that people recommend is that you create an object that it a touch-based rezzer that if a group member touches it, it rezzes the tp object, which calls llDie on itslef once it has TPd the user. You could also have it so that there was a sensor running, and if there was a group member within, say, 10m, the TP became active. It all depends on what you are trying to achieve. Just remember, no matter what you do, non-group members will still find a way to either snag a ride, or get to the destination some other way, so don't rely on this for privacy or security. All it gives you is convenience |
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
07-12-2006 06:15
Simple....
(This assumes that this is not a sit-style (300m limit) teleporter) I assume that you have a changed event handler for when the avatar sits on your teleporter to use it. Add the following code to the handler: CODE
Then share the object that the script is in with the group you want to limit the teleporter to work with. Click the Share with Group checkbox in the General tab of the object after you have set it to a group. Hope this helps! -2fast |
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
07-12-2006 07:09
Cubey Terra's free Mark IV Teleporter allows you to restrict its use to members of a specific group. So yes, it certainly can be done. And it has effectively unlimited range within a sim, to 768M altitude.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
|