Skip to content

Commit

Permalink
Merge pull request #209 from edbeeching/doc_update
Browse files Browse the repository at this point in the history
Update CUSTOM_ENV.md
  • Loading branch information
Ivan-267 authored Oct 21, 2024
2 parents 179d07e + 91b864f commit cba4943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CUSTOM_ENV.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cba4943

Please sign in to comment.