Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

link_message and llSetPrimitiveParams... possible bug!?

Sator Canetti
Frustrated Catgirl
Join date: 20 Sep 2005
Posts: 130
11-26-2005 23:12
I know that llSetPrimitiveParams works in linked child objects... at least on touch.

I tried to put it into a link_message event, and suddenly it doesn't work.

I've tried debug echo statements to make sure that the code sections are being run, and such, and the echos come out fine, the objects don't change, though.

The code in question:

CODE
 default
{
link_message(integer sender_num, integer num, string str, key id)
{
if ( llToLower(str) == "up" )
{
llSetPrimitiveParams( [PRIM_SIZE, <1,1,.01>] );
}

if ( llToLower(str) == "down" )
{
llSetPrimitiveParams( [PRIM_SIZE, <1,1,3>] );
}
}
}
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
11-26-2005 23:55
From: Sator Canetti
I know that llSetPrimitiveParams works in linked child objects... at least on touch.

I tried to put it into a link_message event, and suddenly it doesn't work.

I used your exact code in a child prim with the following in the root and it worked fine for me:
CODE
 integer up = 0;

default
{
touch_start(integer total_number)
{
if(up)
{
up = 0;
llMessageLinked(LINK_SET, 0, "down", NULL_KEY);
}else{
up = 1;
llMessageLinked(LINK_SET, 0, "up", NULL_KEY);
}
}
}
_____________________
Sator Canetti
Frustrated Catgirl
Join date: 20 Sep 2005
Posts: 130
11-27-2005 00:30
Would the fact that the object is physical at the time have anything to do with this? I don't recall seeing anything saying that it should...

It's all very weird.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
11-27-2005 01:07
From: Sator Canetti
Would the fact that the object is physical at the time have anything to do with this? I don't recall seeing anything saying that it should...

It's all very weird.


Yup - the children of a physical link set can change their positions and rotations, but not their sizes. Changing size changes the object's mass, LL disabled the ability probably to stabalize some of Havok's quirkiness.
==Chris
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm