set lower toctree maxdepth and fixed internal link

This commit is contained in:
Remy Marquis 2016-09-13 17:19:00 +02:00
parent e2e4963594
commit 1b61756812
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ Contents
--------
.. toctree::
:maxdepth: 3
:maxdepth: 2
intro
cvars

View file

@ -6,7 +6,7 @@ Legacy's Lua API is the interface for communication between Lua and Legacy mod.
The basic idea for this Lua API is event-management. After a certain event, the lua-interaction-code in Legacy executes a predefined function, with additional predefined arguments.
For example, if a player dies the `et_Obituary( victim, killer, meansOfDeath ) <callbacks.html#et-obituary-victim-killer-meansofdeath>`__ function is executed. The Lua API allows you to manipulate and control this information.
For example, if a player dies the `et_Obituary( victim, killer, meansOfDeath ) <callbacks.html#et-obituary-target-attacker-meansofdeath>`__ function is executed. The Lua API allows you to manipulate and control this information.
In some cases you can also return a value to Legacy, whenever you intercepted something (i.e. a command), and prevent Legacy to handle it further.