Page 1 of 1
Only play as Team 2 [Solved]
Posted: Tue Apr 22, 2014 10:34 am
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.
Re: Only play as Team 2
Posted: Tue Apr 22, 2014 12:29 pm
by Anakin
it's something about forceplayer(2). Have a look in the stock campaigne luas.
Re: Only play as Team 2
Posted: Tue Apr 22, 2014 12:50 pm
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
Re: Only play as Team 2 [Solved]
Posted: Wed Apr 23, 2014 1:39 am
by [RDH]Zerted
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.