Page 1 of 1

Remove all AI from map? [Solved]

Posted: Fri Jan 03, 2014 11:21 pm
by spearmint1934
I'm trying to make a ''private map'' for me and my mates on SWBFII. Problem is, the AIs pretty much ruin the concept of it being a ''private map'' So is there a way to remove all AI?


EDIT: Nevermind, I found a way to do it :D

(Replace ABC with ModID)

How I did it: In data_ABC/common/scripts/ABC there are the..

- ABCc_con.lua
- ABCc_con.lua.bak
- ABCg_con.lua
- ABCg_con.lua.bak

You have to change the : (Example: If I want to remove all Imperial troopers from my map)
*

Code: Select all

			soldier	= { "all_inf_rifleman",9, 25},
			assault	= { "all_inf_rocketeer",1,4},
			engineer = { "all_inf_engineer",1,4},
			sniper	= { "all_inf_sniper",1,4},
			officer	= { "all_inf_officer",1,4},
			special	= { "all_inf_wookiee",1,4},
To:

*

Code: Select all

			
			soldier	= { "imp_inf_rifleman",0, 0},
			assault	= { "imp_inf_rocketeer",0,0},
			engineer = { "imp_inf_engineer",0,0},
			sniper	= { "imp_inf_sniper",0,0},
			officer	= { "imp_inf_officer",0,0},
			special	= { "imp_inf_dark_trooper",0,0},
In the SetupTeams section in your -

- ABCc_con.lua
- ABCc_con.lua.bak
- ABCg_con.lua
- ABCg_con.lua.bak

*Make sure you're removing the AI from the right team you want!

Re: Remove all AI from map? [Solved]

Posted: Sat Jan 04, 2014 9:33 am
by AceMastermind
You don't need to edit nor should you touch files ending in '.bak', those are backup files that you can use to restore your mission luas if you ever screw up something beyond repair.

Re: Remove all AI from map? [Solved]

Posted: Sat Jan 04, 2014 7:18 pm
by spearmint1934
Oh. Ok thanks. :yes:

Re: Remove all AI from map? [Solved]

Posted: Sat Jan 04, 2014 7:32 pm
by GAB
Correct me if I am wrong, but can't you set any map to have no AI by just adjusting the options in the instant action screen for multiplayer sessions?