digweed Posted November 27, 2003 Share Posted November 27, 2003 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 More sharing options...
WadeV1589 Posted November 27, 2003 Share Posted November 27, 2003 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 More sharing options...
digweed Posted November 27, 2003 Author Share Posted November 27, 2003 thank you wade just what i was looking for Link to comment Share on other sites More sharing options...
digweed Posted November 28, 2003 Author Share Posted November 28, 2003 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 More sharing options...
digweed Posted November 28, 2003 Author Share Posted November 28, 2003 found another way of doing it because i couldnt get it to work dunno why i didnt do this before its so obvoius lol i described how in this post : http://www.map-center.com/modules.php?name=Forums&file=viewtopic&t=1992 Link to comment Share on other sites More sharing options...
WadeV1589 Posted November 28, 2003 Share Posted November 28, 2003 At a guess, it may only work up to _style9rgbgen. This is a guess but worth a shot. Link to comment Share on other sites More sharing options...
digweed Posted November 28, 2003 Author Share Posted November 28, 2003 ill give it another go brothers birthday today tho so first thing is to get drunk Link to comment Share on other sites More sharing options...
WadeV1589 Posted November 28, 2003 Share Posted November 28, 2003 Go you! Have one for me as I haven't been to the pub for so long it isn't even funny! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.