CS:GO how do you get a button to spawn bots?

Any aspects of level design for the Source engine.

CS:GO how do you get a button to spawn bots?

Postby c4bb0ose on Mon Dec 09, 2013 6:47 am

I am trying to make a button spawn a bot or multiple bots when pressed, what are the functions to do this? I can make weapons spawn for reference.

I would also like to know if it would then be possible to force the bots to move in a particular pattern and or do other things at particular time intervals?
c4bb0ose
Dumpling
Dumpling
 
Joined: Mon Dec 09, 2013 6:41 am

Re: CS:GO how do you get a button to spawn bots?

Postby Ark11 on Mon Dec 09, 2013 7:27 am

To spawn a bot by pressing a button, make a point_clientcommand, name it (botspawn for example) and then add an output to the button entity 'OnPressed > botspawn > Command > bot_add' (enter each value in the respective field).

I don't know that there is anyway to make the bots act in a certain way though.
"Drop kick me Jesus, through the goalposts of life." - Robert Bare
User avatar
Ark11
Senior Member
Senior Member
 
Joined: Mon May 24, 2010 10:02 pm
Location: Sydney, Australia

Re: CS:GO how do you get a button to spawn bots?

Postby c4bb0ose on Mon Dec 09, 2013 10:57 am

Well that works, but it says teams are full, despite that not being the case, where do you mess with commands when the map loads? or map options for team size?
c4bb0ose
Dumpling
Dumpling
 
Joined: Mon Dec 09, 2013 6:41 am

Re: CS:GO how do you get a button to spawn bots?

Postby LordDz on Mon Dec 09, 2013 11:05 am

Does typing bot_add in the console work normally for you?
If not, make sure that all player spawns are a bit up in the air. That's what I can think of..
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Return to Hammer Editor Help

Who is online

Users browsing this forum: Bing [Bot]