How to spawn no AI [Solved]
Posted: Mon Jul 06, 2009 9:16 pm
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).
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.
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.[RDH]Zerted wrote:elfie wrote:You can do it in the lua...AllowAISpawn( <team number>, false )
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 )
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 )
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.