Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

color changing on one side

Dragger Allen
Registered User
Join date: 3 Mar 2007
Posts: 247
01-06-2008 03:11
I have this script and i am just trying to learn this is my first attemt at any thing scripting wise i want to change the color of just one side of the prim not all sides i looked at wiki and could not find what i needed pertainig to the followint line

llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <0, 0, 0>,

i need to change the All_SIDES to just one face

any help would be appricated


float color = 0.5;

default
{

state_entry()
{
llSetTimerEvent(3.2);
llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <0, 0, 0>, 1.0,PRIM_FULLBRIGHT,ALL_SIDES, TRUE ]);
}

timer()
{
if (color == 0.5) color = 1.0;
else if (color == 1.0) color = 0.5;
llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <0, 0, color>, 1.0,PRIM_POINT_LIGHT, TRUE, <0, 0, color>, 1.0, 5.0, 0.0 ]);
}

}
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
01-06-2008 03:46
In place of ALL_SIDES, you want to use a face number

From: http://johannahyacinth.blogspot.com/2006/11/lsl-magic-barrier.html
To find out what face you want to change, edit the prim and click on the "Select Texture" radio button in the edit dialog. You should see crosshairs appear on all faces of the prim. Click on the face you want to find the number for, and hit Ctrl-Alt-Shift-T. Your chat window will give you certain information about the texture on that face, including the face number.
_____________________
Dragger Allen
Registered User
Join date: 3 Mar 2007
Posts: 247
01-06-2008 03:48
got it myself

yea me i feel good about it now even thought its a script a 2 day old could do i did it myself
Dragger Allen
Registered User
Join date: 3 Mar 2007
Posts: 247
01-06-2008 03:48
From: Day Oh
In place of ALL_SIDES, you want to use a face number


thanks thats what i figured out smiles and then i read hte reply and thats what i did