|
Tasman Perth
Geekette Extraordinaire
Join date: 7 Jun 2005
Posts: 225
|
05-17-2006 06:39
I've put together a teleport booth, sort of a cross between a StarTrek transporter pad and a phone booth.. I originally built it with the intention of putting llTeleportAgent() to good use.. Since that seems to be -not happening-, I figured I'd try adapting one of the sit-teleport scripts to this booth for local tps around my place... The booth is set up with a cylindrical semi-transparent filler, which I use llVolumeDetect() and a collision_start() to phantom the cylinder, and to detect when an av walks into the booth. This works swimmingly. Since I'm quite new to LSL scripting, I'm not real clear on how the sit-teleports work.. I've looked at the various free teleporters and can't tell if its possible to adapt one to teleport from a collision_start event vs a right-click llSitText() .. Can someone kickstart me??
TasPerth
|
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
05-17-2006 06:48
All sit teleporters do is tell SL that the place an avatar sitting on them should be placed is VERY far away. Normally, you use sit positions to make people sit in the right place for vehicles and chairs, but if you set it very far away (up to 300m), and then do llUnsit, the avatar will get off at the location of the sit target. Try looking at a teleporter freebie-- all it does it set the sit target to the right offset, and then unsit people when they sit down. Unfortunately, you can't force people to sit down, so they can't just walk into the teleporter. However, with 1.10.1, there's a new feature "Action on touch", which will let you set it so that people sit down on the teleporter automatically when they click on it. You should probably read the wiki page on llSitTarget.
|
|
Tasman Perth
Geekette Extraordinaire
Join date: 7 Jun 2005
Posts: 225
|
05-18-2006 05:04
From: Keknehv Psaltery All sit teleporters do is tell SL that the place an avatar sitting on them should be placed is VERY far away. Normally, you use sit positions to make people sit in the right place for vehicles and chairs, but if you set it very far away (up to 300m), and then do llUnsit, the avatar will get off at the location of the sit target. Try looking at a teleporter freebie-- all it does it set the sit target to the right offset, and then unsit people when they sit down. Unfortunately, you can't force people to sit down, so they can't just walk into the teleporter. However, with 1.10.1, there's a new feature "Action on touch", which will let you set it so that people sit down on the teleporter automatically when they click on it. You should probably read the wiki page on llSitTarget. Thanks... I'm sorry to hear that.. I soo much wanted to be able to walk into the teleport booth and get tp'ed to my destination... The 'action on touch" function you mention.. that will be in 1.10.1?? Not to doubt you, but I'd read all sorts of stuff, including on the wiki, that llTeleportAgent() was going to be in 1.8.. here we are in 1.9 and ????? I wonder if the action on touch will be the same... sigh!! Anyway, thanks for the info... Tas
|