Lens+Opacity

code //Lens Opacity // script that changes opacity of object based on external messages

default {   state_entry {   }

link_message(integer sender_num, integer num, string str, key id) {       float opacityLvl = (float)num; opacityLvl = 1.1 - ((opacityLvl / 3) * 0.9); llSetAlpha(opacityLvl, ALL_SIDES); } } code