I have a train that moves with a func_track_train. It's a prop_dynamic and I would like to be able to put some lights on it that are able to move with it. (2) spotlights on the front and a few regular lights in the back. Is this a possibility? I tried finding this subject on the boards, but got nothing matching my issue. Any help is appreciated. Thanks.
1
Re: Lights moving with models
Posted by aonomus on Thu Jan 6th at 4:59am 2005
Posted by aonomus on Thu Jan 6th at 4:59am 2005
You can use light_dynamic's and point them accordingly, but beware of
using too many cause with 3+ in a small area it might create problems
(I have had problems putting multiple light_dynamic's in a small area
before)
Re: Lights moving with models
Posted by Static88 on Thu Jan 6th at 5:21am 2005
Posted by Static88 on Thu Jan 6th at 5:21am 2005
I tried using a light_dynamic but I couldn't seem to point it anywhere. It defaults pointing down. I guess i'll just have to tinker with it a bit. Thanks.
Re: Lights moving with models
Posted by Rof on Thu Jan 6th at 6:00am 2005
Posted by Rof on Thu Jan 6th at 6:00am 2005
Enter the name of the func_tracktrain in the light_dynamic's "Parent" field. Then it will move with the train.
You might want to use point_spotlight instead, since you get both a dynamic light and a visible cone of light using that entity.
You might want to use point_spotlight instead, since you get both a dynamic light and a visible cone of light using that entity.
Re: Lights moving with models
Posted by Static88 on Thu Jan 6th at 7:09am 2005
Posted by Static88 on Thu Jan 6th at 7:09am 2005
Awesome, thanks. I'll try that.
Re: Lights moving with models
Posted by Static88 on Thu Jan 6th at 9:28am 2005
Posted by Static88 on Thu Jan 6th at 9:28am 2005
? quoting Rof
Enter the name of the func_tracktrain in the light_dynamic's "Parent" field. Then it will move with the train.
You might want to use point_spotlight instead, since you get both a dynamic light and a visible cone of light using that entity.
You might want to use point_spotlight instead, since you get both a dynamic light and a visible cone of light using that entity.
I tried it. It didn't work, unless i'm doing something wrong. My func_train is named train, and that's what I put as a parent for my lights. I tried both lights_dynamic and Point_Spotlight. If possible, can I get a step-by-step on it? Thanks.
Re: Lights moving with models
Posted by Leperous on Thu Jan 6th at 11:48am 2005

Leperous
member
3382 posts
788 snarkmarks
Registered: Aug 21st 2001
Location: UK
Occupation: Lazy student
Posted by Leperous on Thu Jan 6th at 11:48am 2005
Look for tutorials/topics on the light_dynamic entity, this is a new question 
Leperous
member
3382 posts
788 snarkmarks
Registered: Aug 21st 2001
Location: UK
Occupation: Lazy student
Re: Lights moving with models
Posted by WatchDog on Thu Jan 6th at 1:34pm 2005
Posted by WatchDog on Thu Jan 6th at 1:34pm 2005
How didnt it work? Did they simply not apear? There is a tutorial on
makign rotaing lights that dose it by parenting spotlights to a nodraw
brush rotingaround around an origini brush.
Re: Lights moving with models
Posted by Static88 on Thu Jan 6th at 10:08pm 2005
Posted by Static88 on Thu Jan 6th at 10:08pm 2005
I read up on it and I still can't figure out why the lights don't move with my train. Very strange. I folloewd the directions to the tee. Still no luck. My Parent name is "train" in which I added to my spotlights. Oh well. Thanks for the help.
Re: Lights moving with models
Posted by Leperous on Thu Jan 6th at 10:15pm 2005

Leperous
member
3382 posts
788 snarkmarks
Registered: Aug 21st 2001
Location: UK
Occupation: Lazy student
Posted by Leperous on Thu Jan 6th at 10:15pm 2005
They probably are moving with the train but your light_dynamic isn't set up properly- if you want to do a test, try parenting a func_brush to the train. I've had loads of problems getting them to work myself (with black light and the like being emitted); remember to set the maximum distance or else you won't see the light being drawn too!
Leperous
member
3382 posts
788 snarkmarks
Registered: Aug 21st 2001
Location: UK
Occupation: Lazy student
Re: Lights moving with models
Posted by Static88 on Thu Jan 6th at 10:31pm 2005
Posted by Static88 on Thu Jan 6th at 10:31pm 2005
I never thought of putting a world brush on my train, but I guess that's why you the man. I'll try that. Thanks, Lep.
Re: Lights moving with models
Posted by Nasher on Fri Jan 7th at 4:23pm 2005
Posted by Nasher on Fri Jan 7th at 4:23pm 2005
I just set the light_dynamic as parent to the entity, it works but the problem is I can only get it to point sideways (I read someone else can only get it to point down) no matter what I set the angle to, weird :/
BTW does anyone know how to stop the light from spotlights shining through floors?
Re: Lights moving with models
Posted by Static88 on Fri Jan 7th at 5:41pm 2005
Posted by Static88 on Fri Jan 7th at 5:41pm 2005
Well, I tried the whole spotlight thing for my train and ended up giving up on the whole idea. I had to choose my battles as there are quite a few little things I need to do before it's finished. Too bad you can't just put a normal light tied to the func_tracktrain. There's no "parent" option. Anyways, good luck on your lights, Nasher.
Re: Lights moving with models
Posted by sXenoG on Sun Jan 9th at 4:55am 2005
Posted by sXenoG on Sun Jan 9th at 4:55am 2005
I believe u could change the floor to a func_detail and theres a flag u
can check that says something about shadows and it wont allow the light
to be emitted.. (i dont remmeber if this was for the lights or if this
was so shadows can show thru but i hope it helps
1
© Snarkpit.net 2001 - 2023, about us, donate, contact
Snarkpit v6.1.0 created this page in 0.0199 seconds.

Snarkpit v6.1.0 created this page in 0.0199 seconds.


