Lighting Sequence
Posted: Wed May 04, 2005 8:23 pm
ok, what I have is a series of lights hooked up to one switch and theyre all going up the side of a smoke stack. i want it so that when the player hits the trigger, the bottom light turns on, then a secoond later it turns off just as the second light turns on, then a second later it turns off just as the third light is turning on, and so and so forth for as many lights as I have it. I need a little bit of help with the script
What i have normally is:
and everything works fine and dandy. But now i want to mak it so this can be turned off and im not quite at the script testing stage yet.
Can you tell me if this would work:
If this will work plz dont tell me about some way that includes level.light doing this and this while this equals that and all that stuff. im not good at that.... Thnx.
Dragon
What i have normally is:
Code: Select all
main:
level waittill prespawn
thread light_ops
$light_01 light 1 0 0 150
$light_02 light 1 0 0 150
$light_03 light 1 0 0 150
$light_01 lightoff
$light_02 lightoff
$light_03 lightoff
level waittill spawn
light_ops
while(1)
{
$light_01 lighton
wait 1
$light_01 lightoff
$light_02 lighton
wait 1
$light_02 lightoff
$light_03 lighton
wait 1
$light_03 lightoff
waitframe
}
endCan you tell me if this would work:
Code: Select all
main:
level waittill prespawn
thread light_ops
$light_01 light 1 0 0 150
$light_02 light 1 0 0 150
$light_03 light 1 0 0 150
$light_01 lightoff
$light_02 lightoff
$light_03 lightoff
level waittill spawn
light_ops
$trigger_01 waittill trigger
while(1)
{
$light_01 lighton
wait 1
$light_01 lightoff
$light_02 lighton
wait 1
$light_02 lightoff
$light_03 lighton
wait 1
$light_03 lightoff
waitframe
}
endDragon