• Rigs of Rods 2022.12 has been released! Get it here.
  • We are excited to announce that our forum has undergone a major upgrade to XenForo, bringing us up to date with the latest features and improvements after two years!
    As with any significant upgrade, there are a few changes still taking effect. You may notice some features not working as expected while we complete the final adjustments. We appreciate your patience and understanding during this transition period.

Commands for angelscript?

gravity: use this word with 'moon', 'jupiter', and 'earth' to change gravity
 
That is not an angelscript command. That's a console command. It's angelscript equivalent is game.setGravity(-9.8f).
Another command similar to that is the game.setWaterHeight(100.0f) command, which i used for my (unpublished yet) flood escape script.
-9.8f and 100.0f are numbers.
There are also game.spawnObject() and game.spawnTruck(), which are documented here.
But this is nothing compared to all the commands you can execute. Rigs of Rods's angelscript api documentation can be found here: https://ror-source-docs.netlify.app/d2/d42/group___script_side_a_p_is.html.
Commands are usually found in script-to-game.
 
Last edited:
Back
Top