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.
Only play as Team 2 [Solved]
Moderator: Moderators
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Only play as Team 2 [Solved]
Last edited by thelegend on Tue Apr 22, 2014 1:25 pm, edited 1 time in total.
- Anakin
- 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
it's something about forceplayer(2). Have a look in the stock campaigne luas.
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Only play as Team 2
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
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
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Only play as Team 2 [Solved]
Code: Select all
ForceHumansOntoTeam1(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.
