Spawning
Moderator: Moderators
- [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: Spawning
Yes
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Spawning
Could you tell me how?
- [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: Spawning
There are a couple of ways to do it. Do you want the AI spawn to be delayed only for the first human spawn? If so, when your map starts to load, disable AI spawning: Only on the first human character spawn (many campaign maps do this, look at their scripts), reenable AI spawning:
I should point out that a server running this map will be stuck on it until a human player joins the game.
Code: Select all
AllowAISpawn( ATT, false )
AllowAISpawn( DEF, false )Code: Select all
AllowAISpawn( ATT, true )
AllowAISpawn( DEF, true )-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Spawning
Does this go in my lua, and if so, where?
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Spawning
This is probably over your head to be honest. You need to understand lua scripting to do what you're wanting to do. Again, this is going back to keeping it simple.
