|
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
|
04-30-2008 17:18
I am trying to get a prim/texture to chance to see-through when touched from 0% to 90% I assime you use llSetTexture(); but have got stuck default { state_entry() { llSay(0, "Hello, Avatar!"  ; } touch_start(integer total_number) { llSay(0, "Touched."  ; llSetTexture( Insert something to change the prim transparency ); } } Thanks for the help
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-30-2008 18:16
This also turns it off and on when you touch it: integer on_off = 1;
default { touch_start(integer n) { if(on_off) llSetAlpha(0.0, ALL_SIDES); else llSetAlpha(0.9, ALL_SIDES); on_off = !on_off; } }
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
|
04-30-2008 18:34
thanks perfect
|