Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design

Reply
 
Thread Tools Display Modes
Old 09-05-2008, 08:08 AM   #1
Kris2456
 
 
 
Guest
Posts: n/a
Angry func_tracktrain

I'm having a lot of problems using this entity.

I have a platform that moves along a curved path of path_track's. The player pushes a button, and the platform moves to the end of the track, waits for 10s and then reverses back to it's original position, and the whole system resets.

In any case, the player does not directly control the platform. To make it go forwards i use StartForwards, and to stop i use Stop. This works great, and the platform moves fine. However, when i try and use Reverse, the platform just sits there.

I have changed all of the path_track's new speed variables to a non zero value but that does not work. StartBackwards works, but it makes the platform spin around 180 to face the direction of motion. Also, i need the platform to face in the direction of motion, so turning off rotation isn't an option.

Anyone got a solution?
 
Reply With Quote
Old 09-05-2008, 10:46 AM   #2
Frodo Greenman
 
 
 
Guest
Posts: n/a
Not sure I understand what you are asking but in the path_tracks 'Orientation type' is set to 'No Change? If not try it.
  Reply With Quote
Old 09-05-2008, 01:53 PM   #3
DasMatze
 
Join Date: Mar 2008
Reputation: 22
Posts: 367
Maybe Reverse works when you use StartBackward after that.

http://developer.valvesoftware.com/w...nc_tracktrain:
Quote:
Backward movement

Due to coding errors or engine limitations, the Reverse and StartBackward may not function correctly if the "New Train Speed" property in the involved path_track entities is set to 0. The train may fail to reverse, jamming in place or moving in the wrong direction. To solve this issue, some or all of the path_tracks must have their "New Train Speed" variable set to a nonzero value.
DasMatze
DasMatze is offline   Reply With Quote
Old 09-06-2008, 06:53 AM   #4
Kris2456
 
 
 
Guest
Posts: n/a
Thanks, changing the values to "near path_track" worked great!
  Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 10:56 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.