parenting point_viewcontrol Created 13 years ago2011-05-16 13:32:28 UTC by Captain Terror Captain Terror

Created 13 years ago2011-05-16 13:32:28 UTC by Captain Terror Captain Terror

Posted 13 years ago2011-05-16 13:38:38 UTC Post #294689
I have a button that targets a controllable cannon on a train. the button also targets a point_viewcontrol. After activation, the cannon is operable by the player for 35 seconds. Everything works fine. (long as the train isn't moving)

However, when i try parenting the Point_viewcontrol to the train, it won't work. Without parenting it works, but of course as the train moves, the view remains static. (which is bad)

Any ideas how i can properly parent the the viewcontrol to the train, or do something else to get the same effect?
Captain Terror Captain Terrorwhen a man loves a woman
Posted 13 years ago2011-05-16 18:51:40 UTC Post #294692
This will sound weird, but try creating a func_brush and texture it nodraw, then parant that to the train, and then parant the PVC to the func_brush. It's silly but by experience I have noticed that sometimes silly things work better than obvious things.
Madcow MadcowSpy zappin my udder
Posted 13 years ago2011-05-17 01:55:49 UTC Post #294703
I'll try your suggestion and see if it works! Hammer 4 seems more than a bit quirky, like it's older brother.. =)

i've noticed so far that some entities simply won't work if they are parented to another object, but i'll keep trying to get it to work! (my carepackages will be pretty boring if i cant)

Also btw, i just noticed that point_viewcontrol has fields to add a path_corner and an inital train speed, but the speeds don't seem to match a tracktrain, and are much slower, so i'm not sure how exactly to pair them up properly.
Captain Terror Captain Terrorwhen a man loves a woman
Posted 13 years ago2011-05-19 23:23:31 UTC Post #294782
well, i'm about to give up on this. I actually got the viewcontrol to parent to the train somewhat, by using a method outlined by Gucio at Interlopers

To work, first of all, the train must already be in motion. Then, by a whatever trigger(i used a button), you enable the viewcontrol and also setparent of the viewcontrol to the train.

The problem(s) with this method is the VC will only follow the train for a short time, even if you don't have only ONE path_track, AND, fsr you are not able to operate the gun..

I've looked all over, and this is the closest i've come top successfully parenting the VC to the train.. If anybody knows of or can think of a work-around, please let me know!

Edit:
Problem Fixed!

With the help of [frank] from Interlopers.

My point_vc is now properly parented to the tracktrain and everything(including the mouse-controlled gun) works perfectly!

)

Captain Terror Captain Terrorwhen a man loves a woman
You must be logged in to post a response.