Cool Idea

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
Sputnik
Colour Sergeant
Posts: 85
Joined: Thu Jul 04, 2002 12:36 am
Location: V.A.

Cool Idea

Post 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!!)
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Sputnik
Colour Sergeant
Posts: 85
Joined: Thu Jul 04, 2002 12:36 am
Location: V.A.

Post 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??
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Sputnik
Colour Sergeant
Posts: 85
Joined: Thu Jul 04, 2002 12:36 am
Location: V.A.

Post by Sputnik »

mmmm... ok.. how do I define spawnpoints??
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Image
Post Reply