Editing An Introduction to Squirrel
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 17: | Line 17: | ||
You should have a location something like this: <pre>C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\scripts\vscripts\testing.nut</pre> | You should have a location something like this: <pre>C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\scripts\vscripts\testing.nut</pre> | ||
Go ahead and launch your favorite Source game which supports VScript and load into any map on a local server, then bind any key to | Go ahead and launch your favorite Source game which supports VScript and load into any map on a local server, then bind any key to "script_execute testing". | ||
For example: bind 5 "script_execute testing" | |||
For example: | |||
Tab out of your game, open your .nut file and type: | Tab out of your game, open your .nut file and type: | ||
Line 28: | Line 26: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This prints the text "Hello World!" to console, we'll cover what all this means later, for now this is just to make sure you have a set up to test with as you read through the guide. | |||