|
Lewis Nerd
Nerd by name and nature!
Join date: 9 Oct 2005
Posts: 3,431
|
05-11-2006 13:23
Ok... I have a situation that has to be done in Mouselook.
I want an avatar to be able to teleport up or down 6m from their current position.
I have created something that works for "right click sit" but I want it to work with the collision detection so that when someone walks into a phantom prim, they are teleported where they want to be going.
I have something that, when someone walks into it, gives a message upon collision detection.
But I can't seem to get them to both work at the same time. Obviously I can't get someone to go out of mouselook, right click teleport, and back to mouselook every time.
I could modify the freebie trampoline to push Z in the right amount but can't do -Z to go down.
My plan was one teleporter to go up, and one to go down.
Triggering a teleport from a collision. That's the problem.
Anyone got any bright ideas?
Lewis
|
|
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
|
05-11-2006 13:40
1.9.1 has a click-sit option I believe. Which would mean you could teleport with a click too, if I'm not mistaken. If it can wait that long it is..
Zap
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.--------------- Zapoteth Designs, Temotu (100,50)--------------- 
|
|
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
|
05-11-2006 13:52
The solution to this is llTeleportAgent(), but since we don't have this... There's no way to trigger a Sit Teleport from a script as far as I know. It has to be manually clicked by the user. One workaround: detect the collision and rez a prim around the avatar. Then move the prim to the new location quickly. But this might not take the avatar through the floor, so you might have to phantom part of the floor briefly. Turn off the collision sound on the prim so that you don't hear the avatar bumping continuously against the moving prim. At least, if you're in mouselook, you won't see the body flailing around during this procedure.  I don't know. I'm interested in other people's solution to this. We need llTeleportAgent()
_____________________
Prim Composer for 3dsMax -- complete offline builder for prims and sculpties in 3ds Max http://liferain.com/downloads/primcomposer/
Hierarchical Prim Archive (HPA) -- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools. https://liferain.com/projects/hpa
|
|
Lewis Nerd
Nerd by name and nature!
Join date: 9 Oct 2005
Posts: 3,431
|
05-11-2006 13:53
From: Zapoteth Zaius 1.9.1 has a click-sit option I believe. Which would mean you could teleport with a click too, if I'm not mistaken. If it can wait that long it is.. 1.9.1 was the one we were due this week wasn't it? If that's my best option then I can wait to try it I guess, it's not like it's part of Havok 2. Lewis
|
|
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
|
05-11-2006 14:05
From: Lewis Nerd 1.9.1 was the one we were due this week wasn't it?
If that's my best option then I can wait to try it I guess, it's not like it's part of Havok 2.
Lewis Believe so. Could always check it out in Preview when its back up again. Not sure when that'll be though. 
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.--------------- Zapoteth Designs, Temotu (100,50)--------------- 
|
|
Lewis Nerd
Nerd by name and nature!
Join date: 9 Oct 2005
Posts: 3,431
|
05-12-2006 07:15
Seems like you can click on something in mouselook by using the left mouse button, as long as the crosshair is on the item you're "touching" ... maybe I'll experiment with that method when I get home.
Lewis
|