Disappearing elevators?

Disappearing elevators?

Re: Disappearing elevators? Posted by pWEN on Sun Jul 1st 2007 at 1:02am
pWEN
6 posts
Posted 2007-07-01 1:02am
pWEN
member
6 posts 1 snarkmarks Registered: Jul 1st 2007 Occupation: Nerd Location: USA
Hey all :smile: <br style="color: silver;"><br style="color: silver;"><span style="color: silver;">I'm having trouble with elevators. I have two in my map, one to go up and down, one to go back and forth. Both only have two path_tracks. I would like them to work in a way that requires no buttons; the player merely steps onto the platform and it moves until they get off.

When I first set them up, the brushes set as func_tracktrains would be there in the map, but wouldn't go anywhere. After scouring google and forums for elevator tutorials, I went back over their properties and fixed some things, and now they don't even appear when I run the map.

Here's the properties for the vertical elevator, that starts at the bottom..

func_tracktrain
Name: el1
First stop target: el1_bottom
Change velocity: Instantaneously
Height above track: 0
Inputs:
</span><ul style="color: silver;">[*] Source: el1_top
[*] Output: OnPass
[*] My Input: Stop
</ul><span style="color: silver;">I've also made sure that the path_track el1_bottom, where it starts, is in the direct center of el1, and that el1_top, where it stops, is exactly placed over it.

path_track
Name: el1_bottom
Parent: el1
Next stop target: el1_top
Orientation type: No change

path_track

Name: el1_top

Parent: el1

Next stop target: el1_bottom

Orientation type: No change
Outputs:
</span><ul style="color: silver;">[*] My Output: OnPass
[*] Target entity: el1
[*] Target input: Stop
</ul><span style="color: silver;">And here's the properties for the horizontal elevator..

func_tracktrain

Name: platform

First stop target: leftblock

Change velocity: Instantaneously

Height above track: 0

Inputs:

</span>
<ul style="color: silver;">[*] Source: rightblock
[*] Output: OnPass
[*] My Input: Stop
</ul>
<span style="color: silver;">path_track

Name: leftblock

Parent: platform

Next stop target: rightblock

Orientation type: No change

path_track

Name: rightblock

Parent: platform

Next stop target: leftblock

Orientation type: No change

Outputs:

</span>
<ul style="color: silver;">[*] My Output: OnPass
[*] Target entity: platform
</li>[*] Target input: Stop
</ul>
<br style="color: silver;"><span style="color: silver;">What could make them disappear? I've tried closing and reopening Hammer as well. And do I honestly have to have a button to activate the elevators? Is there a better method?

Thanks for the help. And sorry for the font color, I couldn't read it in the message box, and am not sure it'll show up on the dark background.
</span>
Re: Disappearing elevators? Posted by Riven on Sun Jul 1st 2007 at 4:14am
Riven
1640 posts
Posted 2007-07-01 4:14am
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
Hmm after a brief look over, I see that you have parented your path_tracks; why would you do that? Especially since you have parented them to the [color=limegreen]func_tracktrain, they will probably not show up because they have moved to some far remote location within the void; becoming a glitch, so try un-parenting them and that should probably solve a few problems...[/color]

EDIT: also another few quick fixes:

The "next stop target" keyvalue should list the name of the other path_track, that way the tracktrain knows which way to go.

The func_tracktrain should also have an input from the bottom path_track telling it to stop on pass.
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202
Re: Disappearing elevators? Posted by Stadric on Sun Jul 1st 2007 at 4:51am
Stadric
848 posts
Posted 2007-07-01 4:51am
Stadric
member
848 posts 585 snarkmarks Registered: Jun 3rd 2005 Occupation: Slacker Location: Here
Shouldn't you mark your post as a possible solution?

Yes, parenting the path_track to the func_tracktrain is probably what's causing the train to not appear. Since they both depend on the other to give them a location, they probably do without and don't show up in the first place.
Also change the texture of the dock. Docks are rarely tile. -Facepunch
As I Lay Dying
Re: Disappearing elevators? Posted by Riven on Sun Jul 1st 2007 at 9:04am
Riven
1640 posts
Posted 2007-07-01 9:04am
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
I suppose so, but there could be other things wrong with the map or train that we don't know about yet, but I guess I'll mark it as such. All he can do is just reject it, or whatever...

[EDIT] (marked first post as possible solution to the problem...)
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202
Re: Disappearing elevators? Posted by pWEN on Fri Jul 6th 2007 at 6:13am
pWEN
6 posts
Posted 2007-07-06 6:13am
pWEN
member
6 posts 1 snarkmarks Registered: Jul 1st 2007 Occupation: Nerd Location: USA
Thank you guys for your help!!

I've got the elevators to show up again. Unparenting did the trick. Other guides weren't very clear on this; in fact, one told me to parent them to begin with!

But alas, the elevators will not go anywhere. I've tried removing the 'stop on pass' inputs from the pathtracks where the elevators are meant to go, and that didn't work. I'm not sure how to get them to move just by having the player step on them.

With the exception of the pathtracks no longer using parents, the above properties I posted remain the same.
Re: Disappearing elevators? Posted by quanta on Fri Jul 6th 2007 at 6:12pm
quanta
33 posts
Posted 2007-07-06 6:12pm
quanta
member
33 posts 53 snarkmarks Registered: Jun 14th 2007 Occupation: Student/Programmer Location: USA
If you want them to move when the player steps on, simply make a trigger_multiple and parent it to the elevator. Then set its outputs as follows:

MyOutput: OnStartTouch
Target Entities Named: el1
Via This Input: StartForward

MyOutput: OnEndTouch
Target Entities Named: el1
Via This Input: Stop
People its snarkpit.net not snarkpit.com! Be sure to check this when you add links!
Re: Disappearing elevators? Posted by pWEN on Sat Jul 7th 2007 at 10:12pm
pWEN
6 posts
Posted 2007-07-07 10:12pm
pWEN
member
6 posts 1 snarkmarks Registered: Jul 1st 2007 Occupation: Nerd Location: USA
Thank you Quanta!! Works perfectly. :smile: