mirror of
https://github.com/liftedpixel/lslscripts.git
synced 2026-08-14 00:58:07 +00:00
RegionControls is a set of simple scripts I use to control the color and alpha of parts of my sims. SLDB is the LSL half of a database system for OS/SL that writes to an external MySQL database.
31 lines
478 B
Plaintext
31 lines
478 B
Plaintext
default {
|
|
|
|
state_entry() {
|
|
|
|
llSetAlpha(0.0, ALL_SIDES);
|
|
|
|
float x;
|
|
|
|
for (x = 0.0; x < 1; x=x+0.00002) {
|
|
llSetAlpha(x, ALL_SIDES);
|
|
}
|
|
|
|
state down;
|
|
}
|
|
}
|
|
|
|
state down {
|
|
|
|
state_entry() {
|
|
|
|
llSetAlpha(1.0, ALL_SIDES);
|
|
|
|
float x;
|
|
|
|
for (x = 1.0; x > 0; x=x-0.00002) {
|
|
llSetAlpha(x, ALL_SIDES);
|
|
}
|
|
|
|
state default;
|
|
}
|
|
} |