How to move a custom object?

Discussion in 'Mapping Questions & Discussion' started by Shallwe, Jul 16, 2012.

  1. Shallwe

    Shallwe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    Hi everyone, this is my first thread and i hope upload any map soon!. I´ve been searching for a way for move an object like the train in Well (for second tought that the CS "func_vehicle" may work what just gave me an icon wich says "obsolete"), so i need to move a custom train model but it will be able for carry player inside and outside, and a button that when you hit it the train stop. Sorry mah english and i hope you can hep me :blushing:
     
  2. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    1. create 2 path_track entites, one where the train starts and one where you want it's maximum range to be

    2. make a func_train brush

    3. parent the object you want as a train to the func_train brush. Make the path_track's next stop targets each other.

    4. make a func_button somewhere

    5. In the flags tab, check the damage button

    6. On the func_button create these outputs:

    OnDamaged
    (your func_train)
    Stop

    7. Make a logic_auto entity with this output:

    OnMapSpawn
    (your func_train)
    StartForward

    That should do it
     
    • Thanks Thanks x 1
  3. Shallwe

    Shallwe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    I select the entity tool and i write func_train brush or func_train but it just give me an "obsolet" icon but if i write func_brush it gave me something but i don´t know if that something to do with this!
     
  4. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    func_train is a brush entity. That's the actual train. The "train" object is just a prop. Parenting that prop to the func_train brush will make it move with the func_train.
     
  5. Shallwe

    Shallwe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    I make the "func_train" but it just gave me an "obsolete" icon:
    [​IMG]
     
  6. Tarry H Sruman

    Tarry H Sruman Large Orphanage Proprietor

    Messages:
    871
    Positive Ratings:
    820
    Make a brush, select it, then press ctrl+T.
     
  7. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    first, the actual name of the train entity is func_tracktrain, not func_train, sorry :|

    But this should help you understand what's going on:

    [​IMG]
     
    • Thanks Thanks x 2
  8. Shallwe

    Shallwe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    That solved some problems but, can you upload the example? I realy cant get the problem :(
     
  9. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,031
    Positive Ratings:
    3,975
  10. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,213
    Take the brush, use Tie To Entity just like you would for making a func_detail, but select func_tracktrain instead and then give it a name. Then double click the prop, make sure it's set as prop_dynamic, and type the name you gave the brush as the value for Parent.
     
    • Thanks Thanks x 1
  11. henke37

    aa henke37

    Messages:
    1,837
    Positive Ratings:
    420
    Somehow I suspect that he doesn't use detail brushes...
     
  12. Shallwe

    Shallwe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    THANKS A LOT!!! Now it works perfecly!!