How to spawn no AI [Solved]
Moderator: Moderators
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
How to spawn no AI [Solved]
How do you set up the LUA so one side spawns no AI, but the other does? I want to create a level like Yavin 4 Bloodjob from BF1 (survivor mode).
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: No AI
1 thing though - I want to have multiple human units on the field at a time, just no AI. So, in a multiplayer game, multiple human players could spawn on that team, but no AI.elfie wrote:You can do it in the lua. Just make one side have 1 unit on the field at a time and there will be no AI for that side.
- [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: No AI
elfie wrote:You can do it in the lua...
AllowAISpawn( <team number>, false )
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: No AI
Where is that string (AllowAISpawn)? I couldn't find it in my conquest lua.[RDH]Zerted wrote:elfie wrote:You can do it in the lua...AllowAISpawn( <team number>, false )
- Eggman
- Master Bounty Hunter

- Posts: 1516
- Joined: Mon Jul 16, 2007 1:30 pm
- Projects :: Battlefront Chronicles
- Location: Las Vegas
Re: No AI
You need to add it in yourself.Fierfek wrote:Where is that string (AllowAISpawn)? I couldn't find it in my conquest lua.[RDH]Zerted wrote:elfie wrote:You can do it in the lua...AllowAISpawn( <team number>, false )
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: No AI
Is this what it should look like:Eggman wrote:You need to add it in yourself.Fierfek wrote:Where is that string (AllowAISpawn)? I couldn't find it in my conquest lua.[RDH]Zerted wrote:elfie wrote:You can do it in the lua...AllowAISpawn( <team number>, false )
AllowAISpawn( 1, false )
And where does it go in the lua?
- [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: No AI
Sorry, if I had checked your post count I would have written more text. Yes, that code is correct. It goes anywhere in your PostScriptLoad() function.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: No AI
Okay, that worked. Thanks![RDH]Zerted wrote:Sorry, if I had checked your post count I would have written more text. Yes, that code is correct. It goes anywhere in your PostScriptLoad() function.
