Get arguments from Godot instance

Godot Version

4.2.1

Question

Can you please help me with a question I have about creating a new instance of Godot? I used the code

OS.create_instance(["123"])

and I’m not sure how to get new arguments from new instances. Also, I wonder if this is a good method for managing multiple servers and passing new ports for each server. thanks

You can use OS.get_cmdline_args() or OS.get_cmdline_user_args() to get the arguments

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.