How can I make it so that only a specific team can enter an area?

I made bases for a team game I have, and was wondering if there’s any way to make it so that only one team can enter a certain area??

Here’s two ways I would do it:

  1. Use a flag that the other team can’t enter, and put it at the entrance
  2. Place down a barrier, set it’s scope to team, and have a relay disable the barrier for the team that can pass through

I hope that helps!

1 Like

Thank you so much! However, is there any way that I can make it after one team opens that barrier, no other team can buy it?

Yes! Make it so that when it is bought, it increases a counter by 1. Set the target value to 1. When the target value is reached, send out a channel that deactivates vending machine.

1 Like

or you can just make it deactivate after buying it in availability settings

1 Like

Where is it?

first option in the availability settings of the vending machine

I’m not sure but it doesn’t seem to be working for me, I want to make a barrier that only certain teams can walk through, i followed the instructions but I’m still confused

I think you need a lifecycle connected to the relay for it to activate