Skip to content

Commit

Permalink
Update src/utils/helper_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-szweda authored Oct 15, 2023
1 parent 46417b0 commit eaaff91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ async def wait_for_next_tick():
async def set_agent_dead(player_id: str, object_id: int):
"""Set agent dead and remove it from the scene."""
logger.debug(f"Starting to set agent {object_id} dead")

player = state.scene.get_player(player_id)
if player is None:
logger.warning(f"Player with id: {player_id} does not exist")
Expand Down

0 comments on commit eaaff91

Please sign in to comment.