Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Ouch!

Aqua Therian
Registered User
Join date: 6 Jul 2004
Posts: 8
07-29-2004 16:36
Well the MoveToTarget seems to be working just fine for my attached teleporters, but there is one problem, How can I get it to move me through the floor while its attached? The object being phantom doesnt make my av phantom, and it just stops the upward movement when my head hits the ceiling, is there anyway I can make the av temp phantom or something to let it actually move me through to the next floor? Other than putting holes in my floor.
Cubey Terra
Aircraft Builder
Join date: 6 Sep 2003
Posts: 1,725
07-29-2004 16:51
I'm not sure what your teleporter is supposed to do, but I assume it's meant to move an avatar from one spot to another. I suggest using llSetPos and make the object non-physical. This allows the object *and* avatar to be moved through objects.

See the Badgeometry wiki:
http://www.badgeometry.com/wiki/llSetPos

llSetPos is limted to 10m movement, so you can do something like this to move it to any position:
CODE


moveMyObject()
{
vector target = <128,128,128>;
while (llGetPos() != target)
{
llSetPos(target);
}
}



(Chris will, no doubt, write it all on a single line :), but I'm an LSL amateur and it's easier for me to read like this.)
_____________________
C U B E Y · T E R R A
planes · helicopters · blimps · balloons · skydiving · submarines
Available at Abbotts Aerodrome and XstreetSL.com

Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
07-29-2004 16:52
That's the downside of using attachments as teleporters, you need to have a clear path to your destination.

You could make you floor quickly go phantom to let the avatar through, and unphantom when the avatar finishes getting through.
==Chris
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
07-29-2004 16:52
From: someone
Originally posted by Cubey Terra
I'm not sure what your teleporter is supposed to do, but I assume it's meant to move an avatar from one spot to another. I suggest using llSetPos and make the object non-physical. This allows the object *and* avatar to be moved through objects.

See the Badgeometry wiki:
http://www.badgeometry.com/wiki/llSetPos


Attachments cant use llSetPos.
Cubey Terra
Aircraft Builder
Join date: 6 Sep 2003
Posts: 1,725
07-29-2004 16:59
I didn't realize he was talking about an attachment. Thought it was an object you sit on.

In that case... ignore what I posted or make it an object that you sit on :)
_____________________
C U B E Y · T E R R A
planes · helicopters · blimps · balloons · skydiving · submarines
Available at Abbotts Aerodrome and XstreetSL.com

Aqua Therian
Registered User
Join date: 6 Jul 2004
Posts: 8
07-29-2004 22:37
The problem isn't that it is attached, the problem was that I wanted to do it without using sit in the first place, Everyone uses the llSitTarget script, but then you have to click on the teleporter. I wanted to just be able to walk over it and have it move you. I will try the temporary making the floor phantom, but I might just resort to the sit target like EVERYONE else seems to be using :(
Archanox Underthorn
Registered User
Join date: 20 May 2003
Posts: 168
08-03-2004 22:54
there's a reason why its used so much :P