SWBF CUSTOM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

SWBF CUSTOM

The best way to custom your games.
 
HomeLatest imagesSearchRegisterLog in

Share
 

 [résolu]Disabling a side

View previous topic View next topic Go down 
AuthorMessage
Glitch
Storm Trooper Corporal
Storm Trooper Corporal
Glitch

Messages : 408
Registration Date : 2012-04-02
Age : 29
Location : Baktoid Combat Automata

[résolu]Disabling a side Empty
PostSubject: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 5:03 pm

For example, I'm working on a few mod maps to go with my NEW CIS Side mod.
I would like to find out how to disable a player from using the republic side so as to force them onto the CIS.

The same way they force the player onto the Republic/Imperials side in the campaign.

Could anyone give me a short guide, or give me a link to one?


Last edited by Glitch on 8/26/2012, 3:26 am; edited 4 times in total
Back to top Go down
https://2img.net/r/ihimg/a/img841/5206/glitchesultimatesidemod.jpg
The Outrider
Lance Corporal
Lance Corporal
The Outrider

Messages : 36
Registration Date : 2011-01-15
Location : USA

[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 7:51 pm

You first have to make your CIS side Team 1 and do either of the following:

1. Add the following function to your lua somewhere between ScriptPostLoad() and ScriptInit():
Code:
ForceHumansOntoTeam1()
2. Or add the following line to your lua under the ScriptCB_DoFile lines:
Code:
ScriptCB_SetGameRules("campaign")
Back to top Go down
Glitch
Storm Trooper Corporal
Storm Trooper Corporal
Glitch

Messages : 408
Registration Date : 2012-04-02
Age : 29
Location : Baktoid Combat Automata

[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 8:49 pm

The Outrider wrote:
You first have to make your CIS side Team 1 and do either of the following:

1. Add the following function to your lua somewhere between ScriptPostLoad() and ScriptInit():
Code:
ForceHumansOntoTeam1()


Last edited by Glitch25 on 4/23/2012, 9:35 pm; edited 1 time in total
Back to top Go down
https://2img.net/r/ihimg/a/img841/5206/glitchesultimatesidemod.jpg
The Outrider
Lance Corporal
Lance Corporal
The Outrider

Messages : 36
Registration Date : 2011-01-15
Location : USA

[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 8:53 pm

Um...did you even read what I wrote? It only works for team 1, which is why I told you to make your CIS side team 1. And you can't just go making up functions like "ForceHumansOntoTeam2()," which doesn't exist, and expect it to work. No wonder it crashed. Rien
Back to top Go down
Glitch
Storm Trooper Corporal
Storm Trooper Corporal
Glitch

Messages : 408
Registration Date : 2012-04-02
Age : 29
Location : Baktoid Combat Automata

[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 9:35 pm

Derp


Last edited by Glitch25 on 4/23/2012, 9:38 pm; edited 1 time in total
Back to top Go down
https://2img.net/r/ihimg/a/img841/5206/glitchesultimatesidemod.jpg
Glitch
Storm Trooper Corporal
Storm Trooper Corporal
Glitch

Messages : 408
Registration Date : 2012-04-02
Age : 29
Location : Baktoid Combat Automata

[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 9:36 pm

The Outrider wrote:
You first have to make your CIS side Team 1 and do either of the following:

1. Add the following function to your lua somewhere between ScriptPostLoad() and ScriptInit():
Code:
ForceHumansOntoTeam1()

Yes the crashing was a failure on my part. You said to make them team one, but didn't explain how to do that.

Could you please explain how to change the CIS to team one?


Back to top Go down
https://2img.net/r/ihimg/a/img841/5206/glitchesultimatesidemod.jpg
The Outrider
Lance Corporal
Lance Corporal
The Outrider

Messages : 36
Registration Date : 2011-01-15
Location : USA

[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 10:20 pm

I didn't explain how because I thought this was so obvious that you would know how to do it on your own...

Anyway, in your lua where it says REP = 1 and CIS = 2 or REP = ATT and CIS = DEF (depends on the lua), just switch what REP is equal to and what CIS is equal to.
Back to top Go down
Glitch
Storm Trooper Corporal
Storm Trooper Corporal
Glitch

Messages : 408
Registration Date : 2012-04-02
Age : 29
Location : Baktoid Combat Automata

[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime4/23/2012, 11:41 pm

The Outrider wrote:
I didn't explain how because I thought this was so obvious that you would know how to do it on your own...

Anyway, in your lua where it says REP = 1 and CIS = 2 or REP = ATT and CIS = DEF (depends on the lua), just switch what REP is equal to and what CIS is equal to.

I just started to learn how to mod :/ I should have been more clear about that. Thanks!
Back to top Go down
https://2img.net/r/ihimg/a/img841/5206/glitchesultimatesidemod.jpg
Sponsored content




[résolu]Disabling a side Empty
PostSubject: Re: [résolu]Disabling a side   [résolu]Disabling a side I_icon_minitime

Back to top Go down
 

[résolu]Disabling a side

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
SWBF CUSTOM :: Star Wars Battlefront Games :: Modding-