If an app try to open a Godot game executable and pass it some arguments that game could receive it?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ferhand
:warning: Old Version Published before Godot 3 was released.

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?

:bust_in_silhouette: Reply From: Zylann

I think you can use OS.get_cmdline_args(), which returns a StringArray OS — Godot Engine (stable) documentation in English

I haven’t try it yet, so I hope it works…

ferhand | 2017-11-29 04:37