Re: Disappearing elevators?
Posted by pWEN on
Sun Jul 1st 2007 at 1:02am
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 pWEN on
Fri Jul 6th 2007 at 6:13am
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
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
Posted
2007-07-07 10:12pm
6 posts
1 snarkmarks
Registered:
Jul 1st 2007
Occupation: Nerd
Location: USA
Thank you Quanta!! Works perfectly. :smile: