parenting func_movelinear

Pi Mu Rho

ValveTime Admin | Enemy of fun
Staff member
Joined
Aug 5, 2003
Messages
9,351
Reaction score
165
So I've got a func_tracktrain that follows a series of path_tracks in order to make the top section of a moving crane. This all works swimmingly. Now I want a lower part for the crane that can raise and descend in order to pick things up. I've created this with a func_movelinear (and some ropes for effect). It moves a total of 224 units straight down when fully extended. When it's not parented to the train, it works fine - it descends and raises as you would expect. However, as soon as I parent it to the train, using the "open" input that would usually lower the crane causes it instead to go upwards and along a negative X axis. I initially thought that some weirdness was causing it to move to the world origin (0,0,0), but it's nowhere near. In fact, it appears to be moving 448 units (twice the movement amount set in the func_movelinear properties) along the x axis. Help?
 
by an astonishing coincidence i just did something similar, but a different method:

i used a tracktrain for the up&down bit as well, with both path_tracks AND tracktrain parented to the side-to-side tracktrain, and it worked fine. try it

btw i scrapped it since to make a crane which moves fwd/back, side-to-side, up/down takes three separate buttons/levers and if it's a magnet you want as well that's a 4th button to turn it on/off. too clunky for my tastes
 
I have an alternate control method :)

Thanks for that though - greatly appreciated.
 
Back
Top