Easy question with a hopefuly easy answer:
How do i force a player automaticaly to a team when the map begins? Just like in the campaigns.
Only 1 playable side
Moderator: Moderators
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Only 1 playable side
ScriptCB_SetGameRules("campaign")
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Only 1 playable side
And how do I define the team in which the player comes? Or is it always team 1?
Last edited by Aman/Pinguin on Fri Feb 08, 2008 2:00 pm, edited 1 time in total.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Only 1 playable side
When the game rules are set to campaign, only team 1 is playable.
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Only 1 playable side
Good thanks.
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: Only 1 playable side
Sorry, i thought posting it here since this is kindoff the same...
How do you make one playable unit/class, but other classes/AI from that team still play (they're not playable) Is this possible in another way then locals?
Also, how do you 'unlock' a certain character after a mission is accomplished? (example; campaign training
Again, i thought best would be to post this here, since these both are for some sort of campaign goals right?
How do you make one playable unit/class, but other classes/AI from that team still play (they're not playable) Is this possible in another way then locals?
Also, how do you 'unlock' a certain character after a mission is accomplished? (example; campaign training
while it wasn't playable before accomplishing)now switch to the engineer class...
Again, i thought best would be to post this here, since these both are for some sort of campaign goals right?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Only 1 playable side
It's fine to start a new topic for a new question, if you need to.
Regardless, to answer your question, you need to do the first through a local team. You could make it so that if the player spawned as another character on your team you forced him to spawn as the class you want, but it's much easier to just use a local team.
The second is easy, all you do is use AddUnitClass whenever the objective is finished.
Regardless, to answer your question, you need to do the first through a local team. You could make it so that if the player spawned as another character on your team you forced him to spawn as the class you want, but it's much easier to just use a local team.
The second is easy, all you do is use AddUnitClass whenever the objective is finished.
- [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 1 playable side
Unless you want all the other effects of the campaign rules, you should really just use ForceHumansOntoTeam1(1).Maveritchell wrote:ScriptCB_SetGameRules("campaign")
Yeah, you should have the AI on a locals team. Check the assets/scripts/geo/geo1c_c.lua to see how the training mission has things setup.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Only 1 playable side
He did ask "just like in the campaigns."
The campaign setup has the positive effect of going right to the unit selection screen, rather than just disallowing choosing the team 2.
The campaign setup has the positive effect of going right to the unit selection screen, rather than just disallowing choosing the team 2.
