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