Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to respawn agents #80

Open
beaol opened this issue Nov 14, 2023 · 0 comments
Open

How to respawn agents #80

beaol opened this issue Nov 14, 2023 · 0 comments

Comments

@beaol
Copy link

beaol commented Nov 14, 2023

Hi, is it possible to respawn an agent immediately after it dies in the environment?
When running the environment with a certain number of agents, I experience that the environment resets after some amount of agents dies. I would like to prevent this reset and just respawn an agent right after it dies.
I tried to clear the dead_this_tick and dead_agents sets and add the dead agents back to alive_agents, but it didn’t seem to work. It prevented the reset of the environment but the agents were still dead and never acted again.
Is it possible to respawn agents when they die?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant