|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
08-28-2006 02:04
This Is A FLickering Candle Script But It Gives A Error Message Can Someone Pls Help // Colors to cycle through list colors = [ "<1, 0.375, 0>", "<1, 0.5, 0>", "<1, 0.625, 0>" ]; // Time interval to flicker light at float flicker = 0.05; state on { state_entry() { ParticlesOn(); llSetTimerEvent(flicker); } timer() { integer random = llFloor(llFrand(llGetListLength(colors))); llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, (vector)llList2String(colors, random), 1.0, 10.0, 0.75]); } }
|
|
Dnel DaSilva
Master Xessorizer
Join date: 22 May 2005
Posts: 781
|
08-28-2006 02:22
I'm no coder but first off you don't have a default state, so change 'state on' to 'default'
Secondly, ParticlesOn() is not a valid funcion, nor defined in the script. If I take that line out, it will compile and kinda work. Hope that gives you a place to start at.
|