This feature branch gives you the ability to run AngelScript scripts on launch and have them running continuously until the game shutdown, in both menu and simulation (both single and multiplayer).
The game interface is the same which terrain scripts use, with new extension: global object input which lets you retrieve configured controls and current input states.
There is an example script 'demo_script.as' in the "resources/scripts" directory (or 'resources/scripts.zip' package when installed). You can run it by 2 ways:
from command line: ror -runscript demo_script.as (you can load multiple scripts by using -runscript repeatedly)
from RoR.cfg: app_custom_scripts=demo_script.as (you can enter multiple filenames delimited by comma).
Showcase of the example script:
This is probably the least-nonsense feature I coded so far.
This feature branch gives you the ability to run AngelScript scripts on launch and have them running continuously until the game shutdown, in both menu and simulation (both single and multiplayer). The game interface is the same which terrain scripts use, with new extension: global object
input
which lets you retrieve configured controls and current input states.There is an example script 'demo_script.as' in the "resources/scripts" directory (or 'resources/scripts.zip' package when installed). You can run it by 2 ways:
ror -runscript demo_script.as
(you can load multiple scripts by using-runscript
repeatedly)app_custom_scripts=demo_script.as
(you can enter multiple filenames delimited by comma).Showcase of the example script:
This is probably the least-nonsense feature I coded so far.