Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SitTarget/Teleport - Linked Set

Mimo Vacano
Registered User
Join date: 27 Dec 2006
Posts: 54
06-19-2007 06:40
I'm working on a control panel with several local teleport buttons using llSitTarget -- a linked set. Everything works very well except for empty buttons. I've tried every variation I can find to set the target to ZERO_VECTOR and affecting by various versions of rotations, setting my target to the offset of the root prim's position, hard coding the offset to <0,0,1>... basically I've tried every variation I can think of. I'm stumped and would appreciate any insight. I would expect that it sit me on the panel itself but it doesn't.

The buttons set to a nearby target work perfectly. When the panel is in it's ready-to-be-set state or any button is undefined or actively set to <0,0,0> - teleporting blasts me off onto neighboring land (all the same sim). I'm guessing it would blast me even farther except that I've reached the sim boundary. I can't be sure because I'm floating around in space - but it appears that no matter what version of 0 I set the target to, I get blasted to the same place.

Any ideas? Thanks.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-19-2007 09:47
Well... a null sitTarget--anything with a ZERO_VECTOR offset--effectively cancels the sitTarget for that prim. Since these are in a linkset, I'm guessing that the root prim had some irrelevant sitTarget set in it at some point, and that now if you sit on a child prim without a sitTarget, you end up wherever that root prim 's old sitTarget was. So... perhaps the first step is to null out the sitTarget of the root prim... and/or maybe set a very very small offset as the sitTarget of the "empty button" prims. Or, anyway, I *think* that's what's going on here.
Mimo Vacano
Registered User
Join date: 27 Dec 2006
Posts: 54
06-19-2007 13:09
Thanks! That gave me some ideas. I had tried <0.,0.,.1> with no luck but I tried <.1,.1,.1> and that seems to have done the trick.