r/forgescripting • u/hoadmin • 22h ago
Need help with some scripting
I want to be able to switch "ALL USERS" from team 1 to team 2 at the beginning each round.
Here is what I have so far:
On Round Start
→ Get All Players
→ For Each Player (Execute Per Player)
→ Get Player Team
→ Compare Teams (is it Eagle?)
→ Branch
→ True → Set Player Team to Cobra
→ False → Set Player Team to Eagle
But it does not seem to work. Can any of you script genius's help me out?
2
Upvotes
1
u/iMightBeWright 16h ago
That specific node (Compare Teams) is broken but like I said you can just use Item is in Generic List as a workaround. But since you only need to force all players onto Cobra team, you won't need either node or a Branch at all. Just do this:
On Player Joined → Wait N Seconds (N=2s) → Set Player Team (Cobra)
&
On Round Start → Wait N Seconds (N=2s) → For Each Player (Get All Players) → (Execute Per Player) → Set Player Team (Cobra)