Forum breadcrumbs - You are here:ForumCommunity Boards: Hammer and ModdingLifts
Please or Register to create posts and topics.

Lifts

PreviousPage 2 of 2

MoveToPathNode also good page to look at: linkToVDChere

?????????????????????????????TWP Releases | My Workshop

chickenmobile: Thanks a lot!
One more thing:
I compiled the map to try it out. When you first walk in the lift is a floor below you. There's a button on your right to make it come up to your level. When I pushed it, the lift came up, but instead of being horizontal so you can actually walk on it, it was vertical and pushed up against the wall. In Hammer I have it horizontal. For some reason it flipped it. I attached the vmf and the bsp so you can see what's happening. Anyone know what happened or how to fix it?
Note: attachments removed so they aren't always available from this post

Just change the settings in the func_tracktrain so then it has a "Fixed Orientation" inside the flags tab (it won't flip them then)

Also it would probably be easier if you parented the buttons to move the lift on the tracktrain and use logic such as a math_counter with a logic_case in order to decide which level the lift should stop at.

sp_lift.vmf
?????????????????????????????TWP Releases | My Workshop
chickenmobile wrote:
Just change the settings in the func_tracktrain so then it has a "Fixed Orientation" inside the flags tab (it won't flip them then)

Also it would probably be easier if you parented the buttons to move the lift on the tracktrain and use logic such as a math_counter with a logic_case in order to decide which level the lift should stop at.

sp_lift.vmf

Thanks a lot!
One thing still isn't working, though. The lift still shifts over a unit or two. Checking the "fixed orientation" flag made it horizontal like it should be, but it still isn't lined up with the shaft. Also, for some reason it wouldn't go down when I went up to the top level and back down to the middle one (where you start the level). I went up, and back down, and then it would only let me go between those two levels. It wouldn't go down to the bottom one. To try and fix this, I put in the following output on the path_tracks:

My Output: OnPass
Target Entities: lift_levelCounter
Input: SetValue
Parameter Override: [1 for the bottom level; 2 for the middle level; 3 for the top level]

I compiled and tested. When I pushed the first button to make the lift come up, it came up, but right before it stopped at the middle level, my computer locked up. I had to open the task manager to close Portal 2. I tried again and the same thing happened. Do you know how to fix this?

When I tested it, it worked perfectly. I could press the buttons to go up and down. You SHOULD NOT put any outputs that use 'OnPass' that will set the value of the counter or change where the lift will go to. There is a good chance that the lift went into an endless cycle and tried to move the same point when it passes the track it as just at. THAT'S WHY IT CRASHED. I have a picture here if you need a clearer explanation.
Image

If you do not want the lift to move when you multiple press the call lift button, lock the calling button 'OnPass' for the same level's track and enable it again once you press one of the two buttons for raising and lowering the lift.

I realised that for the call button it was incorrect as setting the lift's position will not change the counter's value. Therefore you need to change the counter's value to set the position of the lift.

sp_lift.vmf
?????????????????????????????TWP Releases | My Workshop
PreviousPage 2 of 2