Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetPrimitiveParams([PRIM_GLOW,ALL_SIDES,99 ] );

Eazel Allen
EA-design™
Join date: 11 Feb 2007
Posts: 123
04-19-2008 08:17
Any ideas why this line wont work the command is on lsl wiki but it wont save

llSetPrimitiveParams([PRIM_GLOW,ALL_SIDES,99 ] );

Also the PRIM_GLOW should turn blue like other prim params in a script but stays black.

Im guessing theve released the command on lsl wiki b4 actually adding it to the viewer.

Any ideas why wont work are welcome Thank you

Eazel
_____________________
http://secondlife://cub/235/190/465/

http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=48444
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
04-19-2008 08:37
Only works in the 1.20 viewer and above.
Eazel Allen
EA-design™
Join date: 11 Feb 2007
Posts: 123
04-19-2008 09:35
From: Talarus Luan
Only works in the 1.20 viewer and above.


It works in 1.19.1.4

I got the answer from the open source scripting group and here it is.
you need to add an integer value then it works .


integer PRIM_GLOW= 25;
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_GLOW,ALL_SIDES,1 ] );
}


}
_____________________
http://secondlife://cub/235/190/465/

http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=48444
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
04-19-2008 10:16
From: Eazel Allen
Any ideas why this line wont work the command is on lsl wiki but it wont save

llSetPrimitiveParams([PRIM_GLOW,ALL_SIDES,99 ] );

Eazel


CODE

integer PRIM_GLOW = 25;
float glow = 0.5; // a value between 0.0 and 1.0
defaoult
{
state_entry()
{
llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, glow ] );
}
}


This will work. The constant: PRIM_GLOW is not defined in the viewer yet... so you do it
_____________________
From Studio Dora
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
04-19-2008 10:33
Yep. The constant is not defined in < 1.20, so that line will not compile. :)