2004-12-13 15:43:41 +01:00
|
|
|
Scripting
|
|
|
|
---------
|
|
|
|
|
|
|
|
OpenTTD supports scripts.
|
|
|
|
|
2004-12-13 16:07:33 +01:00
|
|
|
- '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
|
2004-12-13 18:47:21 +01:00
|
|
|
- 'pre_server.scr' is executed before the server is started
|
2004-12-13 19:34:31 +01:00
|
|
|
- 'pre_dedicated.scr' is additionally executed when you start a dedicated server
|
2004-12-13 23:13:02 +01:00
|
|
|
- 'autoexec.scr' is executed on gamestart [use this for custom aliases per ex.]
|
2004-12-13 15:43:41 +01:00
|
|
|
|
|
|
|
For examples how a script can look, check the .example examples.
|
|
|
|
|