Page 1 of 1

Cool Idea

Posted: Tue Mar 04, 2003 1:21 am
by Sputnik
Hey, I was just wondering if there is any way that you could spawn in bots from the .scr file. Isn't it just a team spawn point with special targetnames?? how would I go about doing this?? (Please no one steal my idea!!)

Posted: Tue Mar 04, 2003 8:17 am
by jv_map
This should work:

waitthread level.jvbot_modscript[spawnhandler]::addbot <name> <team> [spawnername]

For example, to spawn an Allied bot called Sputnik's Bot:

waitthread level.jvbot_modscript[spawnhandler]::addbot "Sputnik's Bot" allies sputnik

Note the spawnername tag is optional. Also note the bot will respawn at random spawnpoints. This is also why you can't define the point the bot will initially spawn.

Posted: Tue Mar 04, 2003 9:57 pm
by Sputnik
So If I add this to a pre-made mohaa map, will the bot spawn in a random place??

Also, what does the spawnername do??

Posted: Wed Mar 05, 2003 3:13 pm
by jv_map
Well the bots need bot spawn positions as described in the manual, otherwise they'll all spawn at (0 0 0).

The spawnername's only use is for developer convenience, it allows you to keep track of bots when using the jvbot_status command.

Posted: Wed Mar 05, 2003 11:48 pm
by Sputnik
mmmm... ok.. how do I define spawnpoints??

Posted: Thu Mar 06, 2003 7:24 am
by jv_map