blob: 3cd4e4c3236eb7c1ea2328bc5f16f0c5719976d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Scripting
---------
OpenTTD supports scripts.
- 'on_client.scr' is executed when you join a server as client
- 'on_server.scr' is executed when you start a server / dedicated server
- 'on_dedicated.scr' is additionally executed when you start a dedicated server
- 'pre_server.scr' is executed before the server is started
- 'pre_dedeicated.scr' is additionally executed when you start a dedicated server
For examples how a script can look, check the .example examples.
|