Page 1 of 1

Laser on/off

PostPosted: Sun Apr 17, 2011 10:46 pm
by HavingPhun
is there a way to turn a laser on or off when a certain variable = something. like {scene.my.hi=1} ? {laser on} : {laser off}}?

Re: Laser on/off

PostPosted: Sun Apr 17, 2011 11:30 pm
by hiltropper
just turn the fadedist from 0 to something more than 0 (like 25)
like
laser : fadedist = {scene.my.fade}
option:
scene.my.var1 ? {scene.my.fade=0}:{scene.my.fade=25};

Re: Laser on/off

PostPosted: Mon Apr 18, 2011 12:01 am
by electronicboy
yup, as hiltropper said, just place an if script in the fade dist (in the script menu....)

For laser on use a value thats higher 0

For laser off, use a value of 0

Re: Laser on/off

PostPosted: Mon Apr 18, 2011 12:30 am
by Chronos
Or just change the alpha to 0.

Re: Laser on/off

PostPosted: Mon Apr 18, 2011 12:38 am
by HavingPhun
Thanks

Re: Laser on/off

PostPosted: Mon Apr 18, 2011 2:59 am
by Someone Else
Alpha only matters when you look at the actual laser itself. Zero alpha simply results in a random beam coming from an invisible source.

Thru scene.my, zero fadeDist is certainly the way to go, but if you are like me and don't like scene.my, your best bet is to put the laser on a box and change the color of the box. An opaque box will block the laser.

Re: Laser on/off

PostPosted: Mon Apr 18, 2011 4:14 am
by Chronos
Oh wait, sorry, not alpha. Make the laser black. I was thinking of something else.