Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

~ In the Drak (making light)

Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
11-04-2007 13:16
First off I have local lights turned on, and there is no other light source near me.
The light code doesn't work, what is wrong?
CODE

integer xx;
default
{
state_entry()
{
for( xx; xx !=1; xx = xx -1)

llSetColor(<llFrand(1),llFrand(1),llFrand(1)>,2);
llSetPrimitiveParams ([PRIM_POINT_LIGHT , <llFrand(1),llFrand(1),llFrand(1)> , 1.0 , 10.0 , 0.75]);

}


}
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-04-2007 13:42
Your for test isn't setup correctly:

for(xx = 0; xx !=1; xx--)

But I hope you do understand that this is a particularly nasty infinite loop and is not sim freindly at all. Just checked in an empty sim and it uses 0.2 ms script time and over 10,000 ips script performance
_____________________
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
Ed Gobo
ed44's alt
Join date: 20 Jun 2006
Posts: 220
11-05-2007 02:32
You could try this:
CODE

default
{
state_entry()
{
llSetTimerEvent (1);

}

timer () {
llSetColor(<llFrand(1),llFrand(1),llFrand(1)>,2);
llSetPrimitiveParams ([PRIM_POINT_LIGHT , TRUE, <llFrand(1),llFrand(1),llFrand(1)> , 1.0 , 10.0 , 0.75]);
}

}