SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Jango on March 26, 2010, 04:00:26 PM

Title: [SOLVED] One Playable Team?
Post by: Jango on March 26, 2010, 04:00:26 PM
I intend on making my own little campaign for swbf1 using mission maps and custom maps. I just need to know how to change the LUA file to where you can only play as one team. Also, is it possible to have my series of maps that i intend on making into the actual game's campaigns part?
Title: Re: One Playable Team?
Post by: Breakdown on March 26, 2010, 04:06:21 PM
Yes there is a code for it, I don't know it off the top of my head though, I'll have to check...

I have an ongoing "project" which I am trying to implement my own campaign into the actual game, however, in order for it to look good, I believe the actual source is needed.
Title: Re: One Playable Team?
Post by: gogo12 on March 27, 2010, 01:40:37 AM
I have campaign map.The map is ready but i will not submit it yet.Breakdown pls tell me how to make only 1 playable
Title: Re: One Playable Team?
Post by: Breakdown on March 27, 2010, 06:19:28 AM
The code is:

ScriptCB_SetCanSwitchSides(nil)

Just put that somewhere in the LUA, but remember it ONLY applies to the team that attacking, so if the team you want to be playable is set as defending, it won't work.
Title: Re: One Playable Team?
Post by: Jango on March 27, 2010, 06:50:55 AM
thanks breakdown! btw, how did you find this line?
Title: Re: One Playable Team?
Post by: gogo12 on March 27, 2010, 10:00:04 AM
Yes where you find this line.Very curiosily.
Title: Re: One Playable Team?
Post by: Breakdown on March 27, 2010, 10:20:47 AM
I asked on GT a long time ago an one of the members told me
EhPortal 1.34 © 2025, WebDev