Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- accendi()
- {
- llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,TRUE,
- PRIM_POINT_LIGHT,TRUE,
- <1.0,0.7,1.0>, // light color vector range: 0.0-1.0 *3
- 1.0, // intensity (0.0-1.0)
- 10.0, // radius (.1-20.0)
- 0.6
- ]);
- }
- spegni()
- {
- llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE,
- PRIM_POINT_LIGHT, FALSE, // if this is false, light is off,
- <0.0,1.0,0.0>,1.0, 10.0, 0.5
- ]);
- }
- default
- {
- state_entry()
- {
- spegni();
- llSetText("Listen on 100",<1,1,1>,1);
- llListen(100,"",NULL_KEY,"");
- llListen(200,"",NULL_KEY,"");
- }
- listen(integer channel,string name,key id,string str)
- {
- if(channel==100)
- {
- if(str=="ON")
- accendi();
- else
- spegni();
- }
- if(channel==200)
- {
- llSetColor(str,ALL_SIDES);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement