string my_start_message = "mypose1";
string my_stop_message = "mystoppose1";
default{
link_message(integer sender_num, integer num, string str, key id){
string ms=llList2String(llCSV2List(str),0);
if (ms == "start" || ms == "startf") {
llMessageLinked(LINK_ALL_OTHERS, num, my_start_message, "");
}
else if (ms == "stop" || ms == "stopf") {
llMessageLinked(LINK_ALL_OTHERS, num, my_stop_message, "");
}
}
}
list MY_POSES= [ 1 , 3 ];
string my_start_message = "mypose1";
string my_stop_message = "mystoppose1";
float SIT_ALPHA = 1.0 ;
float UNSIT_ALPHA = 0.0 ;
default {
state_entry() {
llSetAlpha(UNSIT_ALPHA, ALL_SIDES);
}
on_rez(integer r) {
llResetScript();
}
link_message(integer sender_num, integer num, string str, key id) {
if (llListFindList(MY_POSES, [num])==-1) return;
if (str == my_start_message) {
llSetAlpha(SIT_ALPHA, ALL_SIDES);
}
else if (str == my_stop_message) {
llSetAlpha(UNSIT_ALPHA, ALL_SIDES);
}
}
}