Trigger 2 different things on every cap

Discussion in 'Mapping Questions & Discussion' started by Archon, Aug 28, 2017.

  1. Archon

    Archon L1: Registered

    Messages:
    16
    Positive Ratings:
    1
    I'm trying to have a func_tracktrain start moving forwards and backwards on every cap (E.G Every cap moves it up or down) but as a new mapper I have no idea how to do this.
     
  2. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    This is just a quick example.

    Create logic_relay entity. Name it something. On it's output tab, put OnTrigger yourtracktrainname Startforward

    In trigger_capture_area outout tab, put OnEndCap something Trigger.

    This will trigger the logic_relay where you can put the things you need. You can also have separate teams to trigger it (OnCapTeam1 or OnCapTeam2
     
    • Thanks Thanks x 1
  3. Lampenpam

    aa Lampenpam

    Messages:
    994
    Positive Ratings:
    329
    is the relay needed here? Couldn't you just make the capture area tell the tracktrain directly to move instead of using a relay in between.
     
    • Agree Agree x 1
  4. Archon

    Archon L1: Registered

    Messages:
    16
    Positive Ratings:
    1
    I want the tracktrain to move forward on cap, and then move backward when capped again. Currently I have it set to go forward on cap directly through outputs from the trigger.
     
  5. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    I tend to use relays, because if there are more capture points than one, you can just trigger that relay from all of those instead of implementing all stuff into each one. Also you can have different relays for different teams if you want different things to happen upon each team capture.
     
  6. henke37

    aa henke37

    Messages:
    1,834
    Positive Ratings:
    420
    You don't need different relays for capture by different teams.
     
  7. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    I just find it more clear to do it that way.
     
  8. Archon

    Archon L1: Registered

    Messages:
    16
    Positive Ratings:
    1
    I figured it out. Whenever a point is capped, both Logic A and B are triggered. Logic B is disabled on start. Both logic functions will disable themselves and enable the other when triggered, as well as enabling the tracktrain to go forwards and backwards.
     
    • Like Like x 1