ok i got a light that is a script_model and it has the
model: fx/dummy.tik
classname: script_model
targetname: light
and then theres a trigger multiple in the map that when the player walks into it the light goes through RGB cycling every .5 seconds in some mad epileptic thing lol. but the multiple has
targetname: lighter
Tell me what I did wrong. This is my first attempt at light scripting.
the map is title light_test.map the script is titled light_test.scr. I put \\ in front off all the actuall scripting stuff except the "main:" and the "setcvar" things to see if the light script was messin it up but the whole thing didnt work... curious...
I use "Mohaa Script Editor" to write my scripts now... i like it =). but do u think that has anything to do with it?
Last edited by HDL_CinC_Dragon on Wed Feb 02, 2005 2:48 am, edited 1 time in total.
It is probably not a good idea to targetname the light as "light"--"light_01" or "light_bulb" might be better.
Green Beret's script should work well, except I think he has the triggerable and nottriggerable lines reversed. Actually, those two lines are not needed at all because the trigger will not be checked again until the thread is reset by the goto line.
yeah the triggerable and nottriggerable lines are backwards and i use the while(1) stuff and things like that and ill change the targetname of light to light_01.
I wasnt that great at whe While(1) stuff either but i think im gettin the hang of it =)
im not the most expierienced here,but i think u need to add end after level waittill spawn
i usually get better results doin it like that.but it sounds like BD is the one to listen to on this one.
end is to close threads, main is a thread, ONLY use end when that thread is done. if you have nothing but thread calls after level waittill spawn. definitely use end there. otherwise, you only have one thread *shrug*
so end it anyway, you need an end to enclose every thread.
Green Beret wrote:im not the most expierienced here,but i think u need to add end after level waittill spawn
i usually get better results doin it like that.but it sounds like BD is the one to listen to on this one.
I would just like to say: "I LOVE YOU ALL!" it works now =) I added the "lighton" and changed the "_color" to "light" and all that goodness =) it does everything i want it to! Thnx guys! until next time.