Need help setting up entities

Discussion in 'Mapping Questions & Discussion' started by Shadow Tyrant, Aug 24, 2009.

  1. Shadow Tyrant

    Shadow Tyrant L69: Deviant Member

    Messages:
    69
    Positive Ratings:
    3
    Basically, what I want is this. I have a trigger_push that pushes people through and out a door. However, I only want the trigger_push to be active shortly before and after the door is open. So it goes like this:

    Player reaches a certain point
    trigger_push activates, pushing the player towards the door
    Door opens, player is pushed through
    trigger_push pushes them away from the door
    Door closes, trigger push is deactivated.

    I have no idea how to go about setting up the entities to do this. Any help is appreciated.
     
  2. Waif

    Waif L7: Fancy Member

    Messages:
    413
    Positive Ratings:
    125
    Is the door one way through?
    If players can go either way though it will be a little more difficult to pull off.
     
  3. Shadow Tyrant

    Shadow Tyrant L69: Deviant Member

    Messages:
    69
    Positive Ratings:
    3
    Yeah, it's a one-way door. Which is why I need the trigger_push to be activated only when someone is about to go through the door, so people aren't pushed by it when no one is using it.
     
  4. alecom

    alecom L8: Fancy Shmancy Member

    Messages:
    516
    Positive Ratings:
    120
    You need a trigger_push, a trigger_multiple, a door (brush), a door(prop).

    trigger_multiple OnStartTouch -> door open
    trigger_multiple OnEndTouch -> door open

    trigger_multiple's delay before reset 1

    the outputs go to the brush, and the prop is parented to the brush


    edit:

    for one way, have a two trigger_push s, one on each side of the door. Have the first trigger push always be on, and the other one be activated in the same way the door is opened, but by the first trigger_push
     
    Last edited: Aug 24, 2009