Using Team Triggers
By: astro
|
Team Triggers are a great way to make sure only a certain team can activate whatever it is you want to trigger. I am a Capture The Flag fanatic so when I make a CTF level the use of Team Triggers is almost a must. If you have ever played Team Fortress Classic then you know what I mean. This tutorial is going to cover Team Movers. The specific type of mover is a door. I have created a test map so you can follow along. This is very easy to do so here we go: I made rooms connected by a door that we are going to trigger using the TeamTrigger which is located in the Actor Class Browser under Triggers. The exact path is Triggers>Trigger>TeamTrigger. Take a look at this pic: |
||||
![]() |
||||
![]() |
||||
|
This door will be for the Blue team to access. I set the Tag under Events to "BlueTeam". Under Object, make sure to set the InitialState to TriggerControl. Now to set the properties for the trigger which will activate the door: |
||||
![]() |
![]() | |||
|
The Event for each team will match the tag of the door. The Tag for each team will indicate which team the trigger is for. The Team option under TeamTrigger will reflect the tag for the trigger. Blue team is 1 and red team is 0. The TriggerType should be changed to TT_PlayerProximity. Change the CollisionRadius for each trigger as I have above. Once you set these options you will notice a line attaching each trigger to the door. That means that the Tag of each trigger matched the Event of the door. Now here is the setting that makes it all work properly. If each team can open the door because the Tag matches the Event we must change the Radius of each trigger so that only the blue team can access the door from the outside! Look at the pick below: |
||||
![]() |
||||
|
To view the radius of each trigger in the top down view, right-click on toolbar on the top of the top down viewport and browse to Actors then Radii View. |
||||
![]() |
||||
|
Room A is where we want the radius for the blue team's trigger to extend to. Notice that the radius for the blue team trigger goes from room B and into room A. This is because the radius is set to 300. Now any blue player in room A can open the door by walking within the radius of the trigger and gain access to room B! The Red Team trigger is set to such a small radius because you dont want that team to access the door from the outside. In the game there is a chance a red player can run into the room while a blue player is in it. If the red player kills the blue player he can get caught in the room and not be able to get out. Placing the trigger with a radius so small next to the door on the inside will at least allow the player to leave the room. That is the purpose of the second Red trigger. If all went well and you followed this tutorial you should now have a door that will only open up for the blue team. Use team doors in your maps! |
||||