I’m making a game where there are two teams and you win by destroying the other team’s prop. How would I make it so only the opposing team can damage your prop to prevent trolls from destroying their own team’s prop. I already tried looking at other topics but they don’t really make sense or work for me.
So now when the game starts, it will broadcast on a channel, gameStart. Lifecycles will only broadcast for the host so we add a relay:
Place down a relay with the following settings:
Now it will broadcast on teamNumber for all players.
Place a trigger now with the following settings:
Now this trigger will trigger on teamNumber.
Going off to the side on the trigger, select “Blockcode”. Create a new block with these settings:
If the player is on team 1, it will broadcast on team1, if the player is on team 2, it will broadcast on team2.
Cover team 1’s prop with a barrier like this:
Go into the settings of the barrier and change the following settings:
Edit: Make the Active Scope = team
Now, if they are on team 1, a barrier will appear over their prop so they can’t shoot it.
Repeat Steps 6 - 7, except for Team 2. The barrier should activate on team2.
Is there an easier way to do this? Probably. However, if you practice with more complex stuff now, doing really hard things down the road will be easier.
Hold on. Go into the barrier that activates on team1.
Set active on game start to yes, get rid of activates on team1 and have it deactivate on team2
Go into the barrier that activates on team2.
Set active on game start to yes, get rid of activates on team2 and have it deactivate on team1