|
Author | Message |
---|
Glitch Storm Trooper Corporal
Messages : 408 Registration Date : 2012-04-02 Age : 29 Location : Baktoid Combat Automata
| Subject: [résolu]Disabling a side 4/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 |
|
| |
The Outrider Lance Corporal
Messages : 36 Registration Date : 2011-01-15 Location : USA
| Subject: Re: [résolu]Disabling a side 4/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") |
|
| |
Glitch Storm Trooper Corporal
Messages : 408 Registration Date : 2012-04-02 Age : 29 Location : Baktoid Combat Automata
| Subject: Re: [résolu]Disabling a side 4/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 |
|
| |
The Outrider Lance Corporal
Messages : 36 Registration Date : 2011-01-15 Location : USA
| Subject: Re: [résolu]Disabling a side 4/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. |
|
| |
Glitch Storm Trooper Corporal
Messages : 408 Registration Date : 2012-04-02 Age : 29 Location : Baktoid Combat Automata
| Subject: Re: [résolu]Disabling a side 4/23/2012, 9:35 pm | |
|
Last edited by Glitch25 on 4/23/2012, 9:38 pm; edited 1 time in total |
|
| |
Glitch Storm Trooper Corporal
Messages : 408 Registration Date : 2012-04-02 Age : 29 Location : Baktoid Combat Automata
| Subject: Re: [résolu]Disabling a side 4/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? |
|
| |
The Outrider Lance Corporal
Messages : 36 Registration Date : 2011-01-15 Location : USA
| Subject: Re: [résolu]Disabling a side 4/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. |
|
| |
Glitch Storm Trooper Corporal
Messages : 408 Registration Date : 2012-04-02 Age : 29 Location : Baktoid Combat Automata
| Subject: Re: [résolu]Disabling a side 4/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! |
|
| |
Sponsored content
| Subject: Re: [résolu]Disabling a side | |
| |
|
| |
|