Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- state_entry()
- {
- llListen(0,"","","colors");
- llListen(0,"","","stop");
- }
- listen (integer channel, string name, key id, string message)
- {
- if (message == "colors")
- {
- float random = llFrand(1.9)+.5;
- llSetTimerEvent(random);
- }
- if (message == "stop")
- {
- llSetTimerEvent(0.0);
- // llSetColor(c,-1);
- }
- }
- timer()
- {
- integer x =llFloor( llFrand(3));
- vector color;
- if (x==0)
- {
- color=<1,0,0>;
- }
- if (x==1)
- {
- color=<0,0,1>;
- }
- if (x==2)
- {
- color=<1,1,1>;
- }
- llSetColor(color,-1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement