// Two scripts in same prim:<br />
<br />
// Script 1 the switch on off<br />
<br />
// Script name: Rain on off<br />
<br />
integer PLAY_SOUND = TRUE; // TRUE for a click-sound, FALSE for silent.<br />
string SOUND = "64319812-dab1-4e89-b1ca-5fc937b8d94a"; // a click sound<br />
string CONTROLLER_ID = "A"; // see more about CONTROL TEMPLATES at end.<br />
integer mode = 0; // keep track of whether particles are ON(1) or OFF(0).<br />
<br />
default {<br />
touch_start(integer total_number) {<br />
<br />
if ( PLAY_SOUND ) llPlaySound( SOUND, 1.0 ); <br />
<br />
mode = ! mode; // flip on to off, (or off to on).<br />
<br />
llMessageLinked( LINK_SET, mode, CONTROLLER_ID, NULL_KEY ); // send command<br />
<br />
}<br />
<br />
// Listen for other controllers sending ON/OFF commands and remember changes:<br />
<br />
link_message( integer sibling, integer num, string controller_id, key ignore ) {<br />
<br />
if ( controller_id != CONTROLLER_ID ) return; // this message is not for us.<br />
<br />
mode = num;<br />
<br />
}<br />
<br />
}<br />
<br />
// ####################### EOF ##########################<br />
<br />
<br />
// Script 2 the rain<br />
// Script name: Rain<br />
<br />
<br />
integer PLAY_SOUND = TRUE; // TRUE for a click-sound, FALSE for silent.<br />
string SOUND = "64319812-dab1-4e89-b1ca-5fc937b8d94a"; // a click sound<br />
string CONTROLLER_ID = "A"; // see more about CONTROL TEMPLATES at end.<br />
integer mode = 0; // keep track of whether particles are ON(1) or OFF(0).<br />
<br />
default {<br />
<br />
touch_start(integer total_number) {<br />
<br />
if ( PLAY_SOUND ) llPlaySound( SOUND, 1.0 ); <br />
<br />
mode = ! mode; // flip on to off, (or off to on).<br />
<br />
llMessageLinked( LINK_SET, mode, CONTROLLER_ID, NULL_KEY ); // send command<br />
<br />
}<br />
<br />
// Listen for other controllers sending ON/OFF commands and remember changes:<br />
<br />
link_message( integer sibling, integer num, string controller_id, key ignore ) {<br />
<br />
if ( controller_id != CONTROLLER_ID ) return; // this message is not for us.<br />
<br />
mode = num;<br />
}<br />
}<br />
<br />
// ####################### EOF ##########################
Uncover the ultimate Apple smartwatch of 2024! Explore our detailed comparison between the Apple Watch Ultra 2 and the Apple Watch Series 9
Lillysparks: That face looks so much like your avi is that you? Pretty cool. Cheers. 3 days ago |
Lillysparks: that is adorbs I gotta come check it out tomorrow=) 3 days ago |
Emma Florido: Its a absolutely stunning place with amazing colorfull areas. Wonderful work 4 days ago |
Rhowin Blackwell: A huge thank you for the heads up about Starchild Shoppe! I was very pleasantly surprised to find items I hadn't yet seen, as well as the plethora of adult time fun options that are available. 4 days ago |
Jamie Wright: Also, I feel like Val has many many things of all proclivities: hg.osgrid.org:80:ValLands 4 days ago |
Ankhsenaton: Thank you, I will to to see that :-) (I hope you took lots of photos for the Daily Planet ;-) 4 days ago |
Arielle: Wouldn't a mood ring that reflects the RL mood be great? :) 5 days ago |
No comments yet