Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - //dimmer while touching
- float bright = 0;
- float change = 0.2;
- default
- {
- touch(integer b)
- {
- bright += change;
- if(bright > 0.9)
- {
- change = -0.2;
- }
- else if(bright < 0.1)
- {
- change = 0.2;
- }
- {
- llSetPrimitiveParams([PRIM_POINT_LIGHT,TRUE,<1,1,1>,bright,10.0,1.0]);
- llSetPrimitiveParams([PRIM_GLOW, ALL_SIDES, bright]);
- }
- }
- }
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    