Jump to content

Home

triggering lights


digweed

Recommended Posts

hi all, i need some help with a map im making, i need to make a light that starts off but is triggered randomly and is only on for a second before going to its off state again, basicly im using this for lightning. any ideas of how to acheive this pls? thanks in advance for any help, Nathan

Link to comment
Share on other sites

How about using one of the light styles? You can even make your own customised light style to get close to what you want.

 

In the worldspawn type a key/value pair of something like

"_style1rgbgen" "wave square 0 1 0 0.5"

 

This will alternate the light from -1 to 1 (only 1 will have an effect) once every two seconds. It goes wave [type] [base] [amplitude] [phase] [frequency] Where frequency is number of times per second. Other valid types are sin, triangle, sawtooth, inversesawtooth and random. You may want to try random as well.

 

For the light you want to use this effect select it, press N and type a key/value pair of

"_style" "1"

 

This saves need for any extra entities and script and can usually give you what you want.

Link to comment
Share on other sites

been messing around with your idea but i cant seem to get it to work, but i am only using a test compile, am i missing anything? i have changed the name to "_style" "15" and i am using the randow type.

 

 

"_style15rgbGen" and "wave random 0 1 0 0.2" is what im typing in on worldspawn with

 

"_style" "15" as thekey/vlaues on the light, and i am removing the " when i add it :)

 

thanks for any help, nathan :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...