|
Kliger Dinkin
Registered User
Join date: 22 Apr 2006
Posts: 46
|
04-18-2007 10:19
I need a simple HUD that will teleport within a sim. I rezzed and linked the prims, and used a basic script I found in the forums employing llSitTarget to determine the TP locations. I then changed the "When Left-Clicked" setting to "Sit on object." Everything works when the object is in-world: I can touch the object and I'm teleported to the location.
But, when I attach it as a HUD, the touch doesn't work. What am I missing here?
Thanks, KLiger.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
04-18-2007 11:41
From: Kliger Dinkin I need a simple HUD that will teleport within a sim. I rezzed and linked the prims, and used a basic script I found in the forums employing llSitTarget to determine the TP locations. I then changed the "When Left-Clicked" setting to "Sit on object." Everything works when the object is in-world: I can touch the object and I'm teleported to the location.
But, when I attach it as a HUD, the touch doesn't work. What am I missing here?
Thanks, KLiger. Step back and think about it a second. When teh object is in world its 'free floating' , you click and sit on it to TP. When its HUD its ATTACHED TO YOU so you cannot sit on it so no TP available.
|
|
Kliger Dinkin
Registered User
Join date: 22 Apr 2006
Posts: 46
|
Thinking about it
04-18-2007 12:49
From: Newgate Ludd Step back and think about it a second. When teh object is in world its 'free floating' , you click and sit on it to TP.
When its HUD its ATTACHED TO YOU so you cannot sit on it so no TP available. Sitting, in this case, is an abstraction enabling movement through space. So when I do step back and think about it, I figure that there must be a hack that makes another abstraction out of sitting to accomadate a HUD. I know that it is possible to TP from a HUD, I use a commercial one that I place landmarks in. But I wanted something more simple. Is there a work around?
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
04-18-2007 12:55
If all you want to do is click on the HUD and teleport, you could change the "Sit on object" setting back to what it was, and just use the touch event to trigger your teleport code?
Rj
|
|
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
|
04-18-2007 14:06
From: Kliger Dinkin I know that it is possible to TP from a HUD, I use a commercial one that I place landmarks in. But I wanted something more simple. Is there a work around? You can physically puch the avatar there, but it isn't a very good way to do it. That's about it.
|
|
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
|
04-18-2007 14:08
Actually, you could have the HUD rez an object in front of the camera for the user to click to sit on. Looks messy if it gets in someone else's line of sight, but it'd work.
|
|
Twisted Pharaoh
if ("hello") {"hey hey";}
Join date: 24 Mar 2007
Posts: 315
|
04-19-2007 00:43
You might want to use llMapDestination() instead.
|