Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetPrimitiveParams([PRIM_TEXTURE -- how many sides can you set at once?

Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
11-20-2008 18:40
With this example:

llSetPrimitiveParams([PRIM_TEXTURE, 3, "4d304955-2b01-c6c6-f545-c1ae1e618288",
<1.0,1.0,0.0>, <0.0,0.0,0.0>, 0.0]);

Do you have to repeat the whole command if you want to do, say, side 5 as well?

llSetPrimitiveParams([PRIM_TEXTURE, 5, "4d304955-2b01-c6c6-f545-c1ae1e618288",
<1.0,1.0,0.0>, <0.0,0.0,0.0>, 0.0]);
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-20-2008 18:51
Unfortunately it won't let you & or | the side. But of course the nice thing about llSetPrimitiveParams is that you can just add to the list w/o a time penalty:

CODE

default {
state_entry() {
llSetPrimitiveParams([
PRIM_TEXTURE, 3, "4d304955-2b01-c6c6-f545-c1ae1e618288",
<1.0,1.0,0.0>, <0.0,0.0,0.0>, 0.0,
PRIM_TEXTURE, 4, "4d304955-2b01-c6c6-f545-c1ae1e618288",
<1.0,1.0,0.0>, <0.0,0.0,0.0>, 0.0]);
}
}
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
11-20-2008 18:54
thanks Jesse!
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609