Commands for angelscript?

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