I need some help, the tutorials are a bit confusing.
How do I make bots???
Moderator: Moderators
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
How do I make bots???
How do I make bots on a multiplayer map that I made????
I need some help, the tutorials are a bit confusing.
I need some help, the tutorials are a bit confusing.
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
please please please TRY to read the manual. it;s very complete and will show you everything you need to know, plz don't ask us to basically write a tutorial on something that someone else already has and is probably more complete.

Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
OK this is from the manual:
3.1 Adding Bot Spawn Points
You can spawn bots at any entity that has an origin. In general, use the script_origin entity. Do not spawn bots at player spawn positions, as you'll risk players getting stuck in bots. When you've created the script_origins, targetname them ?alliesspawn? for an Allied bot spawn position or ?axisspawn? for an Axis bot spawn position. The bot script will randomly choose between spawn points.
That gives the bots a place to spawn.
Now add the scripting stuff:
9.1 Script File
To get working bots in your map, you need to add a line to your map's script file. Thanks to the easy interface of the bot script, this isn't a difficult job. Add the following line below level waittill spawn. If you have any bombs in your map, you need to add this line below all ?bomb_thinker? lines.
You might also want to spawn a couple of bots when your map starts. Otherwise, you can only add bots by console. To spawn a set number of bots when your map loads, type:
Paste this code just above the enable line from the previous example.
In the end, a part of your script could look like the following example:
Then you would go and add path nodes and such...
Tell me what you still don't understand.
3.1 Adding Bot Spawn Points
You can spawn bots at any entity that has an origin. In general, use the script_origin entity. Do not spawn bots at player spawn positions, as you'll risk players getting stuck in bots. When you've created the script_origins, targetname them ?alliesspawn? for an Allied bot spawn position or ?axisspawn? for an Axis bot spawn position. The bot script will randomly choose between spawn points.
That gives the bots a place to spawn.
Now add the scripting stuff:
9.1 Script File
To get working bots in your map, you need to add a line to your map's script file. Thanks to the easy interface of the bot script, this isn't a difficult job. Add the following line below level waittill spawn. If you have any bombs in your map, you need to add this line below all ?bomb_thinker? lines.
Code: Select all
waitthread global/jv_bots/jv_mp_ai.scr::enable
Code: Select all
level.alliesbots = (number of Allied bots)
level.axisbots = (number of Axis bots)
In the end, a part of your script could look like the following example:
Code: Select all
level waittill spawn
$bomb thread global/jv_obj_dm::bomb_thinker
level.alliesbots = 5
level.axisbots = 5
waitthread global/jv_bots/jv_mp_ai.scr::enable
Then you would go and add path nodes and such...
Tell me what you still don't understand.
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
