Page 1 of 1
can i switch on off the light?
Posted: Sat Feb 21, 2004 2:08 am
by tsensor
i want disco room that light on off very fast
can i on and off the light???
and how?
Dynamic light
Posted: Sat Feb 21, 2004 2:29 am
by tltrude
Make a script_model and give it these key/values.
Key: targetname
Value: lite1 // or whatever you want
Key: model
Value: fx/dummy.tik
Key: overbright_range
Value: 2.0
Key: linear //make it shine in the direction the angle is set
Value: 1
Then in your script, this line will turn it on.
$lite1 light 1 1 1 300 // white color
The first three number are for color, and the last is for size.
This line will turn it off.
$lite1 light 0 0 0 64 // no color
Hope that helps!
THX
Posted: Sat Feb 21, 2004 2:36 am
by tsensor
THX ....THANK YOU
Posted: Sat Feb 21, 2004 9:50 am
by bdbodger
You can use lighton and lightoff too with that .
$lite1 lighton
$lite1 lightoff
I didn't know that you could use linear with dynamic lights .
adf
Posted: Sat Feb 21, 2004 7:16 pm
by tsensor
$lite1 lighton,$lite1 lightoff not effective
Posted: Sun Feb 22, 2004 6:38 am
by bdbodger
I know lighton and lightoff works . I made a while ago a traffic light with lights that switched on and off . This pak contains the .map file .
http://members.shaw.ca/bdbodger/bdb_traffic_light.pk3
oh
Posted: Mon Feb 23, 2004 9:09 am
by tsensor
bdbodger , i saw your map
i followed your map
success!!
your way is more easy then tltrude's way
thx
Posted: Thu Mar 25, 2004 2:06 pm
by agentmad007
$lite1 light 1 1 1 300 // white color
then what are the number for red color and blue color
thx
Posted: Thu Mar 25, 2004 3:02 pm
by agentmad007
i did exactly what said exactly what siad tltrude i got the effect that i wanted but its very hard to see hat the light is on!!!!!
i made a script model with
Key: model
Value: fx/dummy.tik
Key: overbright_range
Value: 2.0
Key: linear <===== dont know really what is the use i tested with and wthout and i got same effets
Value: 1
key:targetname
value:light1
scripts
Code: Select all
main:
level waittill prespawn
$light1 light 0 0 0 64
level waitill spawn
light:
$light1 light 2 2 2 500
its not the total script
but it work the light is off and wait for trigger
tried a lot of value light 50 25 50 300 ; light 15 20 30 500
and i got always the same results a poor light quasily invisible!!!!
the script model is near of the object (not an entity or script object)that i want to light ......
any idea ?
Posted: Thu Mar 25, 2004 3:39 pm
by agentmad007
think i can only change value between 1 and 0 no ?
111 101 110 011 etc ?
wich one is red and blue so ? hehe
Posted: Thu Mar 25, 2004 3:46 pm
by agentmad007
o i think i understand myself
RVB
so red = 1 0 0
green= 0 1 0
blue= 0 0 1
tel me if its worng!