Page 1 of 1

How to spawn no AI [Solved]

Posted: Mon Jul 06, 2009 9:16 pm
by Fierfek
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).

Re: No AI

Posted: Mon Jul 06, 2009 10:00 pm
by elfie
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.

Re: No AI

Posted: Mon Jul 06, 2009 10:03 pm
by Fierfek
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.
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.

Re: No AI

Posted: Mon Jul 06, 2009 10:11 pm
by [RDH]Zerted
elfie wrote:You can do it in the lua...
AllowAISpawn( <team number>, false )

Re: No AI

Posted: Mon Jul 06, 2009 10:13 pm
by Fierfek
[RDH]Zerted wrote:
elfie wrote:You can do it in the lua...
AllowAISpawn( <team number>, false )
Where is that string (AllowAISpawn)? I couldn't find it in my conquest lua.

Re: No AI

Posted: Mon Jul 06, 2009 10:15 pm
by Eggman
Fierfek wrote:
[RDH]Zerted wrote:
elfie wrote:You can do it in the lua...
AllowAISpawn( <team number>, false )
Where is that string (AllowAISpawn)? I couldn't find it in my conquest lua.
You need to add it in yourself.

Re: No AI

Posted: Mon Jul 06, 2009 10:17 pm
by Fierfek
Eggman wrote:
Fierfek wrote:
[RDH]Zerted wrote:
elfie wrote:You can do it in the lua...
AllowAISpawn( <team number>, false )
Where is that string (AllowAISpawn)? I couldn't find it in my conquest lua.
You need to add it in yourself.
Is this what it should look like:
AllowAISpawn( 1, false )
And where does it go in the lua?

Re: No AI

Posted: Mon Jul 06, 2009 10:52 pm
by [RDH]Zerted
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.

Re: No AI

Posted: Tue Jul 07, 2009 3:51 pm
by Fierfek
[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.
Okay, that worked. Thanks!