Basic Cubescript: Variables
#19
What's missing there is the "docsection" command, telling the game that you're going to add to the in-game documentation (though I don't know exactly how crucial this is).
I'm assuming you're putting that code into autoexec.cfg?
If that's the case, it should show up in the in-game documentation.
In-game, type
/kickbots
but don't hit enter. If the documentation doesn't show up, hit F1.
The command
/docvisible 1
should also perform this function.

tools.cfg doesn't specifically call the documentation, there is a separate documentation file for it, "tools docsection.cfg". It is run after the default docs are run, starting its own docsections:
[code=CubeScript]
docsection [Math Tools]

docident [isfloat] [Checks whether a given input is a floating-point number.];
docargument [X] [The item to check];
docexample [echo (isfloat $fov)] [returns 1 since the fov value is in float format.];

// ...

docsection [Alias Tools]

docident [addcheck] [Checks a given alias and, if the given alias does not already have a given string, adds it in using add2alias (see docs regarding that default script).];
docargument [A] [The alias name];
docargument [C] [The command string to search and add in if it is not already in the given alias];
docexample [addcheck commandlist [echo "commands completed!"]] [At the end of executing the alias "commandlist", the given message appears.];
[/code]
Thanks given by:


Messages In This Thread
RE: Basic Cubescript: Variables - by V-Man - 28 Nov 11, 10:38AM
RE: Basic Cubescript: Variables - by V-Man - 28 Nov 11, 09:06PM
RE: Basic Cubescript: Variables - by V-Man - 29 Nov 11, 12:44AM
RE: Basic Cubescript: Variables - by V-Man - 29 Nov 11, 05:41AM
RE: Basic Cubescript: Variables - by V-Man - 30 Nov 11, 05:30PM
RE: Basic Cubescript: Variables - by V-Man - 01 Dec 11, 03:50AM
RE: Basic Cubescript: Variables - by tempest - 01 Dec 11, 03:17PM
RE: Basic Cubescript: Variables - by V-Man - 02 Dec 11, 12:55PM
RE: Basic Cubescript: Variables - by V-Man - 03 Dec 11, 07:37AM
RE: Basic Cubescript: Variables - by Bukz - 03 Dec 11, 01:11PM
RE: Basic Cubescript: Variables - by V-Man - 04 Dec 11, 06:43AM
RE: Basic Cubescript: Variables - by V-Man - 04 Dec 11, 11:21PM
RE: Basic Cubescript: Variables - by V-Man - 05 Dec 11, 10:37AM
RE: Basic Cubescript: Variables - by V-Man - 12 Dec 11, 10:27PM