3

How do I stop bots from attacking?

I accidentally typed in nav_generate so I don't know if this affected anything but if yes, how do I reverse it?

3
  • Why do you have bots if you don't want them to participate? You'll need to explain what you're trying to do.
    – Toomai
    Commented Dec 4, 2014 at 15:33
  • @Toomai There's plenty of reason to want non-attacking bots for experimentation or target practice.
    – jw013
    Commented Dec 4, 2014 at 16:37
  • 1
    Knowing exactly what the reason is will help determine what answer to give.
    – Toomai
    Commented Dec 4, 2014 at 16:56

2 Answers 2

4

By default, Puppet Bots will remain motionless, but will attack if they can see you.

bot -team <teamname/number> -class <classname> -name <botname>

You can input other commands to force these bots to take certain actions. In particular, you can use

bot_forceattack 0
bot_forceattack2 0

to prevent the bot from attacking and

bot_dontmove 1

to prevent the bot from moving.

2
  • but the bots I spawn with tf_bot_add always attack me,is there a command to stop them from attacking me?
    – user93872
    Commented Dec 7, 2014 at 13:54
  • @user93872 I've updated the answer to include an option to prevent attacking. Commented Dec 8, 2014 at 2:55
3

You'll need to enable cheats with sv_cheats 1, but if you type nb_blind 1 this freezes the bots and they won't shoot or move.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .