Only play as Team 2 [Solved]

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
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 :)

Only play as Team 2 [Solved]

Post by thelegend »

Hello Gametoast,
i wanted to ask how I can set in the lua that the player only can play as team 2?

Which line I have to add?

Thx for help.
Last edited by thelegend on Tue Apr 22, 2014 1:25 pm, edited 1 time in total.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Only play as Team 2

Post by Anakin »

it's something about forceplayer(2). Have a look in the stock campaigne luas.
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: Only play as Team 2

Post by thelegend »

I do not find something like "forceplayer".

Edit: Ah ok. I found out how to set this. Thx for the help.

Edit 2: Nearly I put everything from here in my lua. Only the first three or four line blocks.
http://www.gametoast.com/viewtopic.php?f=27&t=9323
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Only play as Team 2 [Solved]

Post by [RDH]Zerted »

Code: Select all

ForceHumansOntoTeam1(1)
It's easier to force humans onto team 1 and then swap the map setup around so the original team 2 is now team 1.

ScriptCB_SetGameRules("campaign") and ScriptCB_SetGameRules("metagame") probably also limit team choice, but they'll have other effects too so I recommend using ForceHumansOntoTeam1() instead.
Post Reply