mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
9ced62e239
-Add: [Network] Add ip-bind ('set server_bind_ip <ip>' in console or use scripts/pre_dedicated.scr)
14 lines
478 B
Plaintext
14 lines
478 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_dedeicated.scr' is additionally executed when you start a dedicated server
|
|
|
|
For examples how a script can look, check the .example examples.
|
|
|