|
Chas Lusch
Registered User
Join date: 1 Mar 2007
Posts: 7
|
12-09-2007 11:14
I realise this probably has a very simple answer, but I'm only learning.
If I have an object, where I only want the parameters of specific link numbers changed, and although the following seems to work, there surely is a simpler, or more tidy option?
{ llSetLinkPrimitiveParams(2, [PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE]); llSetLinkPrimitiveParams(4, [PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE]); llSetLinkPrimitiveParams(6, [PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE]); }
I thought -
{ llSetLinkPrimitiveParams([2,4,6], [PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE]); }
may work, but obviously I was wrong.
So, how do I do it?
Thanks for your help in advance!
|
|
Patrick2 Chama
Registered User
Join date: 15 Sep 2006
Posts: 52
|
12-09-2007 11:21
Not tested, and I just woke up  list linkPrims = [2, 4, 6]; integer i; for(i = 0; i < 3) { lSetLinkPrimitiveParams(llList2Integer(linkPrims, i), [PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE]); }
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
12-09-2007 11:29
While a loop will surely work, I don't think there's any general shortcut. The LINK_ALL_OTHERS and (I suppose) LINK_SET and LINK_ALL_CHILDREN should work, but no way to specify an arbitrary selection of the prims, as far as I know.
And the function has a fifth-second built-in delay, so to get stuff to happen simultaneously, multiple scripts are needed (either in the controlled prims or as slave scripts in the scripted prim).
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
12-09-2007 12:12
From: Chas Lusch I thought -
{ llSetLinkPrimitiveParams([2,4,6], [PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE]); }
may work, but obviously I was wrong.
So, how do I do it?
Thanks for your help in advance!
Oh, the ability to do this would be the best Christmas present ever. 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-09-2007 13:33
it's certainly on my wish list
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
12-10-2007 00:40
Jira it yet?
|