|
Marcus Prospero
Registered User
Join date: 15 Nov 2006
Posts: 16
|
04-29-2007 06:26
A friend has asked me for help with a conveyor belt. The avatar lies on a plate, and then a lever is pulled, sending the plate into a nefarious device. When the lever is returned to it's 'off' position, the plate returns, with the avatar still lying there.
This'll be easy, I thought. Two copies of Timeless Prototype's excellent door script (lever and plate) and a poseball script.
After some fiddling with sit targets and rotations I have them lieing nicely on the plate. The lever triggers the plate's move and back again. Lovely.
But the avatar lieing down doesn't move - the plate skids out from under them.
If I'm sat on a box and move it with the edit controls, I move too - so I assumed that if a script moved an object, the sitter moved with that then, too.
What have I missed? How do I fix this?
|
|
Adrian Zobel
Registered User
Join date: 4 Jan 2006
Posts: 49
|
04-29-2007 13:26
When an avatar sits on a single prim and a script in that prim moves it around, the avatar generally moves with it.
When an avatar sits on a linkset and a script in the linkset moves it around, the avatar doesn't move so good... as you've noticed.
It IS possible to move an avatar sitting on a linkset with llSetLinkPrimitiveParams, but that gets kinda involved. I'm no expert, but I think you'd be better off fixing it so the plate is a single (unlinked) prim that is told where to move itself.
|
|
Marcus Prospero
Registered User
Join date: 15 Nov 2006
Posts: 16
|
04-29-2007 14:25
Bother.
Hmm, okay, thanks for that - I can see how I'll need to adapt the design then!
*goes back to LSLwiki.net*
|
|
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
|
04-29-2007 16:25
llSetLinkPrimitiveParams will move the avatar around without too much trouble. But the avatar motion will be kind of jerky, as all non-physics motion is. You best bet is have the plate be a physical object and have it glide down the conveyor belt.
|