Force the player to only play on one team?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Force the player to only play on one team?

Post by SkinnyODST »

I have a GameMode that is meant for the player to be the Republic side, however they are able to pick the CIS side as well in the spawn selection screen. How do I force the player to only play as the REP side and not CIS? This is done in the campaigns but I had a look in Coruscant`s campaign script and couldn`t find anything that looked like it forced the player the be on the REP side.
Spiret
Private
Posts: 41
Joined: Sun Jan 03, 2016 11:44 am

Re: Force the player to only play on one team?

Post by Spiret »

ForceHumansOntoTeam1()
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: Force the player to only play on one team?

Post by SkinnyODST »

Spiret wrote:ForceHumansOntoTeam1()
Ah yes of course! Thanks!
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Force the player to only play on one team?

Post by thelegend »

In case you want to force them into CIS or team 2 in general, use this: ForceHumansOntoTeam1(0)
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: Force the player to only play on one team?

Post by SkinnyODST »

thelegend wrote:In case you want to force them into CIS or team 2 in general, use this: ForceHumansOntoTeam1(0)
Oo I thought it would`ve been ForceHumansOntoTeam2(), but I guess not, thank you!
Post Reply