Func_tracktrain help

Discussion in 'Mapping Questions & Discussion' started by That's the plan, Feb 27, 2019.

  1. That's the plan

    That's the plan L4: Comfortable Member

    Messages:
    183
    Positive Ratings:
    37
    So for my KOTH map I'm trying to make a elevator that moves whenever the point is capped. At first it works fine, but whenever it comes back down again its always about 12 HU off the ground despite the fact that the "height above track" option in the entity is set to 0. Help?
     
  2. The ImprovisE!

    The ImprovisE! L1: Registered

    Messages:
    17
    Positive Ratings:
    6
    I used func_movelinear for mine, try doing that.
    There also is a blue ball in middle of both func_tracktrain and func_movelinear.
    I can only guess that if its off-center it messes with it. A wild guess though.
    Also try messing with distance between wheels value on func_tracktrain as it has to do something with stopping.
     
    Last edited: Feb 27, 2019
  3. Kill_the_Bug

    aa Kill_the_Bug

    Messages:
    1,776
    Positive Ratings:
    374
    use a func_door with a trigger multiple coded to ontouchall line up the door - set it to open close whatever works best for your scenario and at the opposite end if needed add some extra length so it will disappear through the floor/ceiling when you don't want it to be seen
     
  4. Narpas

    aa Narpas Takes way to long to make and update maps

    Messages:
    417
    Positive Ratings:
    399
    That won't work because you can't close a door when it's in the middle of opening, or change it's speed or anything. Func_movelinear would be the easiest way to achieve what you're assuming for
     
  5. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,292
    Positive Ratings:
    858
    Yes you can.
     
  6. That's the plan

    That's the plan L4: Comfortable Member

    Messages:
    183
    Positive Ratings:
    37
    How? I don't think I can figure it out either. I tried to set it to "onfullyopen", but it didn't work.
     
  7. Kill_the_Bug

    aa Kill_the_Bug

    Messages:
    1,776
    Positive Ratings:
    374
    1. build a door - name it
    2. make a trigger_brush
    3. in outputs - onstarttouchingall target your door - select open or close, onstoptouchingall target your door - select the opposite
    4. run in game - when you touch the trigger the door will start doing what you said, when you stop touching the door will stop where it is and reverse.
    5. if you want it to stop doing that once it's a fully open/close - on the door output - kill trigger multiple