Hi!
Just a enquiry. Let's suppose that we have two linked prims and we want that one of them moves (change position) and the other one stays in its original place while the other one is moving.
Is it possible?
Thanks.
These forums are CLOSED. Please visit the new forums HERE
moving child prims |
|
|
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
|
03-02-2007 07:47
Hi!
Just a enquiry. Let's suppose that we have two linked prims and we want that one of them moves (change position) and the other one stays in its original place while the other one is moving. Is it possible? Thanks. _____________________
First goes before
AW Devices |
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
03-02-2007 08:07
llSetPrimitiveParams (and the soon-to-be llSetLinkPrimitiveParams) is the Big Daddy, and llSetPos is one of it's lesser minions. It is very possible to alter almost any attribute of each individual prim in a link set.
http://www.lslwiki.net/lslwiki/wakka.php?wakka=prim |
|
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
|
03-02-2007 08:36
Thanks a lot it has been very useful.
If I only want to change one property or parameter, Do I need to use llSetPrimitiveParams or I can do it directly with llGetLocalPos and llSetPos? _____________________
First goes before
AW Devices |
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
03-02-2007 09:45
I normally use the direct commands for Pos and LocalPos in a separate script inside the child prim itself.
Once the SetLink commands come out, however, I will be removing these scripts to use those commands in the main control instead. |
|
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
|
03-03-2007 02:18
The problem that I'm having is that if I place the script in the child prim I can not see the script to change it, or it doesn't work.
Why? _____________________
First goes before
AW Devices |
|
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
|
03-15-2007 05:50
I have tried it, but I don't get it.
the child prim is the one that I want to move. Is that right? But it doesn't. Maybe I'm bypassing something. _____________________
First goes before
AW Devices |
|
Per Skookum
Registered User
Join date: 24 Jan 2007
Posts: 4
|
Bug exists
03-23-2007 03:15
Hi,
A script i've written needs to do the same thing however it doesn't work while an avatar is sitting on the child prim until the avatar stands up. I've filed a bug report at https://jira.secondlife.com/browse/MISC-53 and if you're also experiencing the same problem please vote for this bug! ![]() Cheers, Per Skookum |
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
03-23-2007 08:26
Azul, the script with the move goes into the child prim (i.e. the one you want to move).
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
03-23-2007 10:04
I can't reproduce this, Per. I create a cube, put this script into it:
CODE
I sit on the cube and touch it, it moves up 1m. I create another cube and link them, scripted as child. I sit on the scripted cube and click it, the cube moves up 1m (though my av doesn't, as expected). I unlink and relink them with scripted cube as parent. I sit on it and click, both cubes and my av move up 1m. I add this to the script: CODE
And repeat the above tests. Same results. |
|
Per Skookum
Registered User
Join date: 24 Jan 2007
Posts: 4
|
Avatar stays still
03-23-2007 18:32
Yep and the problem is the avatar stays still.
Would be handy to be able to move the avatar as well. |