How to run scripts in team fortress 2?

scripts
by Kmeron

Question by its me: How to run scripts in team fortress 2?
does anyone here know how to run scrips (quick commands) for the game team fortress 2? if you do then please answer(in full detail plz).

Best answer:

Answer by Laike T
Well, in game, you can press ~ and access the console. If you want to run scripts that will persist in game, create a file named autoexec.cfg in you /team fortress 2/tf/cfg folder. You may need to create the cfg folder. Open the autexec.cfg file with Note Pad and have the following in there

exec all.cfg
echo “Autoexec Loading”

then create a .cfg file named all.cfg in the /cfg folder and put your scripts in there. You can find plenty of TF2 scripts at the TF2 wiki Community Scripts page or FPS Banana’s script area. When in game, hit ~ and check if the console reads Autoexec Loading. If it does, then your scripts should be loaded and running.

If you’re interested in writing your own scripts, check out TF2 Wiki’s article on writing scripts.

What do you think? Answer below!

Get the book now