Trigger 2 different things on every cap

maddie!

L1: Registered
Jul 23, 2017
22
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.
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
541
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
 
Mar 23, 2013
1,013
347
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.
 

maddie!

L1: Registered
Jul 23, 2017
22
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.
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
541
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.
 

henke37

aa
Sep 23, 2011
2,075
515
You don't need different relays for capture by different teams.
 

maddie!

L1: Registered
Jul 23, 2017
22
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.