+1 vote

Hi guys and girls!

For example, if Windows CMD try to open a Godot game executable and pass it some arguments in that way that game could receive it?

How?

asked Aug 30, 2017 in Engine by ferhand (36 points)
edited Aug 31, 2017 by ferhand

1 Answer

+4 votes
Best answer

I think you can use OS.get_cmdline_args(), which returns a StringArray http://docs.godotengine.org/en/stable/classes/class_os.html?highlight=OS#class-os-get-cmdline-args

answered Aug 31, 2017 by Zylann (20,843 points)
selected Nov 29, 2017 by ferhand

I haven't try it yet, so I hope it works...

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.