Re: Lights moving with models
Posted by Static88 on
Thu Jan 6th 2005 at 4:20am
122 posts
52 snarkmarks
Registered:
Dec 31st 2004
Occupation: USMC
Location: USA
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.
Re: Lights moving with models
Posted by aonomus on
Thu Jan 6th 2005 at 4:59am
18 posts
2 snarkmarks
Registered:
Dec 26th 2004
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 2005 at 5:21am
122 posts
52 snarkmarks
Registered:
Dec 31st 2004
Occupation: USMC
Location: USA
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 2005 at 6:00am
Rof
member
210 posts
41 snarkmarks
Registered:
Dec 3rd 2004
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.
Re: Lights moving with models
Posted by Static88 on
Thu Jan 6th 2005 at 7:09am
122 posts
52 snarkmarks
Registered:
Dec 31st 2004
Occupation: USMC
Location: USA
Awesome, thanks. I'll try that.
Re: Lights moving with models
Posted by Leperous on
Thu Jan 6th 2005 at 11:48am
Posted
2005-01-06 11:48am
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
Look for tutorials/topics on the light_dynamic entity, this is a new question :razz:
Re: Lights moving with models
Posted by WatchDog on
Thu Jan 6th 2005 at 1:34pm
43 posts
14 snarkmarks
Registered:
Dec 24th 2004
Location: Australia
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 2005 at 10:08pm
Posted
2005-01-06 10:08pm
122 posts
52 snarkmarks
Registered:
Dec 31st 2004
Occupation: USMC
Location: USA
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 2005 at 10:15pm
Posted
2005-01-06 10:15pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
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!
Re: Lights moving with models
Posted by Static88 on
Thu Jan 6th 2005 at 10:31pm
Posted
2005-01-06 10:31pm
122 posts
52 snarkmarks
Registered:
Dec 31st 2004
Occupation: USMC
Location: USA
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 2005 at 4:23pm
12 posts
1 snarkmarks
Registered:
Dec 2nd 2004
Occupation: oddjob
Location: UK
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 2005 at 5:41pm
122 posts
52 snarkmarks
Registered:
Dec 31st 2004
Occupation: USMC
Location: USA
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 2005 at 4:55am
49 posts
5 snarkmarks
Registered:
Dec 24th 2004
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