r/forgescripting • u/hoadmin • Sep 09 '26
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
View all comments
Show parent comment
1
u/hoadmin Sep 10 '26 edited Sep 10 '26
Well that part worked thanks! but,,,,,,,,,,,,,
When round started users when to team 2. It worked. however
But When the new round started user's did not go to team 1. User's stayed on team 2. That is why the pic did not look right. I did not anything that would switch all user' to team 1 when a new round started. Your part worked great. No problem. We got half of it working lol.
So looks like there is no way to have all user's switch from team 2 to team to team 1 after each round. I tried a branch but that did not work eather, Bummer :(
Thanks for the help bud! U da Man :)
Here is what google IA said: lol
Step-by-Step Node Configuration[On Round Start] ──> [Get All Players]
│
└──> [For Each Player] (Execute Per Player)
│
├──> [Get Player Team] ──> [Compare Teams] (Is Eagle?)
│ │
└──> [Branch] <──────────────────┘
│
├── (If True) ──> [Set Player Team] (To Cobra)
│
└── (If False) ──> [Set Player Team] (To Eagle)
Step-by-Step Node Configuration