From 91b864f36ce05f340537ab85413b73bb41c961c5 Mon Sep 17 00:00:00 2001 From: Ivan-267 <61947090+Ivan-267@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:07:53 +0200 Subject: [PATCH] Update CUSTOM_ENV.md --- docs/CUSTOM_ENV.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CUSTOM_ENV.md b/docs/CUSTOM_ENV.md index ae63899..bb05f25 100644 --- a/docs/CUSTOM_ENV.md +++ b/docs/CUSTOM_ENV.md @@ -234,7 +234,7 @@ Which means that those variables got to the Godot Environment successfully. Howe You can access the environment variables though the **godot_rl_agents_plugin/sync.gd** script. You'll see there's a `args` variable that stores all the command line arguments your environment received from the python script. You can access **starting_level** by doing: ```godot func get_starting_level(): - return agrs.get("starting_level", None) + return args.get("starting_level", None) ``` Then, you can use the returned value to set the starting level before the game begins.