im very new to radient so im not an expert at scripting etc, was just wondering if some1 could please help me out.
i have a powerbox with a few lights etc and i just wanted to know how difficult it would be to make it so that when the powerbox is shot the lights go out.
use a trigger_multiple, covering the light box,you want to shoot.
wit setthread lights_off, set the damage property, you set the health if wanted.
to get the lights to turn off, not sure
in the script call the setthread
lights_off:
////code hear
end
it's a start, but have not tried it out meself.
it's not a time for thinking its a time for drinking!
The only kind of light that can turn off is dynamic light since the other type of light is compiled . Even textures that give off light are compiled so I don't think if you texture a script object with a texture that gives off light it will work . You map be able to make a model radiate dynamic light I know the fx/dummy.tik works . Try this make a script_model then do this .
$myscript_model light 1 0 0 50 // red green blue radius this one is red
$myscript_model lighton
make a trigger_multiple with health 1 to cover box
Key: setthread Value:lightsout
lightsout:
$myscript_model lightoff
end
You may be able to do it with a model that is not a script_model or what you can do is use fx/dummy.tik which does not draw and put it near the light source . dynamic light will shine on the backside of brushes so set the radius so that it does not reach the backside of brushes you don't want lighted by the light .
thanx for the help guys, i still dont understand scripts and triggers too well but i'm gonna try and crack on with this.
p.s would it make it alot more difficult if i also wanted a little electric spark on the power pox once its been shot? because i have seen effect done b4.