mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
a9972399c5
- %! allows to merge alias parameters - \% allows to use % in alias strings - "alias" command now overwrites the old alias list entry
15 lines
558 B
Plaintext
15 lines
558 B
Plaintext
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_dedicated.scr' is additionally executed when you start a dedicated server
|
|
- 'autoexec.scr' is executed on gamestart [use this for custom aliases per ex.]
|
|
|
|
For examples how a script can look, check the .example examples.
|
|
|