Now the documentation in g_allclasses.html is sometimes not very helpful, but in an attempt to rewrite this documentation it's important to use correct information this time

.
I found this in the very first command description, hide
This command hides an object so that it is invisible to the player. The object still exists in the world and is still solid... its just invisible. if it is already invisible, nothing happens.
The 'hide' command really involves more. It means the entity is not even sent to client machines (which means they have to be not solid).
A problem turns up at the 'moveto' command, since multiple classes use the same command for different purposes. Apart from the scriptslave moveto you mentioned in the tutorial, there's also a command for AI actors:
g_allclasses.html#actor wrote:moveto( String anim, String dest )
Specify the location to move to, with animation anim.
Moreover the examples of some 'operator commands' are wrong.
Code: Select all
if ( ! $vip_player isAlive )
{
teamwin axis
}
should be
Code: Select all
if !(isAlive $vip_player)
{
teamwin axis
}
Code: Select all
if ( ! $player[local.index] isTouching $it)
{
teamwin axis
}
should be
Code: Select all
if !($player[local.index] isTouching $it)
{
teamwin axis
}
Since the ! was placed before the targetname operator $, which is not allowed.
A result of the confusing syntaxis notation of both g_allclasses.html and your tutorial:
Code: Select all
sighttrace ( 20, 30, 3045 ), ( 0, 0, 0 ), 1
should be
Code: Select all
sighttrace ( 20 30 3045 ) ( 0 0 0 ) 1
The pass_entities sets if entities should be included in the trace calculation or be counted as 'invisible'.
Well not exactly, it sets the number of entity bounding boxes that are assumed to be invisible (weird). Mins and maxs set the bounding box within the sighttrace is performed to save CPU usage. (see also setsize command)
At iprintln you wrote:Prints a message on the left side of the screen in yellow ( no clicking sound ) followed by a line break. Bold version uses a bold font.
The bold version uses the same font, but in white and clicking.
Returns the absolute value of the parameter. abs 15.3 returns 15. abs 2 returns 2. abs 5.99999999 returns 5.
No! You're confusing abs with int

. abs 15.3 is just 15.3, abs -15.3 is also 15.3. It turns all negative values into positives.
Well all this rant is not meant to run down on you or discourage you in continueing this great effort, but to speak out a major word of doubt when it comes to the possibility of completing this project (so many commands to discuss) as well as of the scripting value of the document (wrong explanations are useless) and the layout (no classes).