Lua

As many other Wolfenstein: Enemy Territory mods, Legacy mod enables servers to run Lua scripts.

Installing scripts

Copy your Lua scripts into the legacy mod folder. In order to set up these Lua files you have to set 2 cvars:

lua_modules Space-separated list of Lua modules to load. Modules will be run in the order listed.
lua_allowedModules If set only Lua modules with the matching sha1 signatures listed in this cvar will be allowed to load.

Changing either cvar will cause all currently loaded modules to quit and be unloaded until the server is restarted or the map is changed.

Checking status of scripts

The status of scripts can be checked from the client and server using the following command:

  • lua_status
For listen server users ONLY: lua_status is only available when the server and a map are started.

Scripting

Main page: Lua scripting

External links