Changing the Spawn Timer

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
fusillade
Private
Posts: 32
Joined: Sun Sep 17, 2006 5:11 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Changing the Spawn Timer

Post by fusillade »

I am trying to change the respawn time on a map. Is this the line in the lua file that controls that?

Code: Select all

    SetSpawnDelay(10.0, 0.25)
If it is.. what does it mean, because defualt it is 15 secs, and the numbers shown in every lua for this line is exactly the same....

Thanks for any valid input.

Fusillade24
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Changing the Spawn Timer

Post by t551 »

Well, this is pure speculation, but could this control the AI's spawn behavior in singleplayer, becuase bots spawn in waves, not singly, and 10 seconds seems like a reasonable time for this function.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Changing the Spawn Timer

Post by [RDH]Zerted »

Yes, it does contol the bot's spawn. One parameter is the seconds between spawns, the other is the amount or % of dead bots to spawn. You can even have a third which sets the team.
Post Reply