|
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
|
02-23-2007 11:26
I need to have a prim ( part of a large linked prim ) flash. It would suffice to have the colour come on and go off. llSetAlpha 1 and then 0 would be enough. The trick I need is the timing of the switching?
Anyone please?
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
Not debugged...
02-23-2007 11:46
default { state_entry(integer n) { llSetTimerEvent( 5 ); /// every 5 seonds }
timer() { // do something here to change color } }
|
|
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
|
Object Flashing
02-24-2007 08:08
Thanks for the code to initiate the timer event.
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
02-24-2007 09:06
If you just want to switch alpha on and off, you can add to that, so . . . .
integer Visible = TRUE; default { state_entry(integer n) { llSetTimerEvent( 5 ); /// every 5 seonds }
timer() {
Visible = !Visible; llSetAlpha(Visible, ALL_SIDES); } }
again, not tested.
|