// 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 ##########################
PinDeluca: Amazing Horses - really beautiful 2 hours ago |
Fearghus McMahon: Wouldn't it be easier to create your new avatar with the same key as your old avatar (when running your own grid that is). Otherwise it might still be a single sided friendship and you would not get n... 2 hours ago |
Ellen: Most friendly club I have been to in a long time! Thank you for being so friendly and welcoming! 6 hours ago |
thedeeferry: Fly like an eagle... enjoy... come back zoon. 11 hours ago |
Xenon Darrow: Oh here we go...Bobby gonna be braggin' all over hisself again :D 14 hours ago |
German World Grid: Gleich gehts mit Warm Up los 17 hours ago |
Zoe: Toujours horrible de perdre ceux qui se croisent sur ce monde. Ici nous venons nous défouler et retrouver des connaissances et des amis, mais la vie nous joue des tours, c'est très triste. yesterday |
Isadora Cloudpunk: woot We are jamming yesterday |
*MCL*: Like I said from the start, if it does not have full permission, then it should! So if you find things around our stores and it says they are not, just let us know. Believe me, I will make it! Even ou... yesterday |
Luna Lunaria: Great to see this venue put to good use :-) 2 days ago |
Fred Beckhusen/Ferd Frederix: My technique is to start with the blender script that removes doubles, and cleans up illegal geometry. That is always my first and last step. Almost will load after that, except an object with no tr... 2 days ago |
No comments yet