Jump to content

AngelusWolffe

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. In regards to : llSetLinkPrimtiveParams(linkNum, [PRIM_GLOW, side, intensity]); I see the wiki recommends llSetLinkPrimtiveParamsFast instead. Should I be using that? Additionally, I'm not quite certain where to place llSetLinkPrimtiveParams(linkNum, [PRIM_GLOW, side, intensity]); Should I be placing it after the "llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES);" entries?
  2. Hey folks! Pretty scrubby at LSL, have minor amounts of success here and there. I found the script below and its _perfect_ for what I want, save for it doesn't control glow. I tried messing around with setprimative stuff but met with no success. The Script: float gap = 2.0; float alpha = 0.3; integer toggle; integer flag = -1; default { state_entry() { llSetLinkAlpha(LINK_SET, 0.3, ALL_SIDES); llSensorRepeat("", NULL_KEY, AGENT, 10, PI,2); } sensor(integer total_number) { if ( toggle == FALSE ) // toggle is false, switch it to true and only trigger the timer ONCE when someone is in range { toggle = TRUE; // toggle is now true, and the IF above will not fire again untill reset llSetTimerEvent(0.2); } } no_sensor() // reset all variables and turn off timer fading { alpha = 0.3; llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES); flag = -1; toggle = FALSE; llSetTimerEvent(0.0); } timer() { flag = (++flag % 3); // add one to the flag variable ... (++flag % 3) ... will loop from 0 to 2 and start at 0 again // fade out while (alpha >= 0.0) { alpha -= 0.0001; // adjust alpha BEFORE setting it llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES); } if( flag == 2 ) // every GAP seconds the flag gets increased until it reaches 2 .... this is when the fade IN happens ONLY when flag is 2 { // fade in while (alpha < 0.3) { alpha += 0.0001; llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES); } } llSetTimerEvent(gap); } } -------------------------------------------- All credit to original scripter, but regardless, just looking to add glow cycling into this script Any help would be greatly appreciated.
×
×
  • Create New...