Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //start_unprocessed_text
- /*/|/ Eeron Kilian 2005
- /|/ Script was made for Twistedtwoubles for whatever diabolical
- /|/ colour twitching needs she might have had at that time...
- /|/
- /|/ It should be fairly self-explanatory, if not, just fool
- /|/ around with the numbers until it suits you.
- /|/
- /|/ Modded to act as a light source too.
- integer switch = TRUE; /|/ set "switch" flag to 1 (on)
- default {
- state_entry()
- {
- llSetTimerEvent(1.0); /|/ generate a timer event every 3 second
- }
- timer()
- {
- float alpha = llGetAlpha(0);
- if (switch && alpha != 0.0)
- {
- /|/llSetColor(<5,0,0>, ALL_SIDES); /|/ make it red (5?, it only goes upto 1.0!)
- /|/ PRIM_COLOUR,
- /|/ Side,
- /|/ Colour
- /|/ PRIM_POINT_LIGHT,
- /|/ True/False,
- /|/ Colour,
- /|/ Intensity, (0.0 - 1.0)
- /|/ Radius, (0.1 - 20.0)
- /|/ Falloff (0.01 - 2.0)
- llSetPrimitiveParams([
- PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
- PRIM_POINT_LIGHT, TRUE, <0.192, 0.180, 0.290>, 0.35, 0.075, 0.1,
- PRIM_GLOW, ALL_SIDES, 1.0
- ]);
- switch = FALSE;
- } else {
- /|/llSetColor(<0,0,0>, ALL_SIDES); /|/ make it white (white?, 0 is black!)
- llSetPrimitiveParams([
- PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
- PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 0.5, 0.5, 0.1,
- PRIM_GLOW, ALL_SIDES, 0.0
- ]);
- switch = TRUE;
- }
- }
- }*/
- //end_unprocessed_text
- //nfo_preprocessor_version 0
- //program_version Firestorm-Releasex64 5.0.7.52912 - Arcos153
- //last_compiled 10/08/2017 14:13:39
- //mono
- integer switch = TRUE;
- default {
- state_entry()
- {
- llSetTimerEvent(1.0);
- }
- timer()
- {
- float alpha = llGetAlpha(0);
- if (switch && alpha != 0.0)
- {
- llSetPrimitiveParams([
- PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
- PRIM_POINT_LIGHT, TRUE, <0.192, 0.180, 0.290>, 0.35, 0.075, 0.1,
- PRIM_GLOW, ALL_SIDES, 1.0
- ]);
- switch = FALSE;
- } else {
- llSetPrimitiveParams([
- PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
- PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 0.5, 0.5, 0.1,
- PRIM_GLOW, ALL_SIDES, 0.0
- ]);
- switch = TRUE;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement