You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
Closed in #545.
See hit_test.py sample for a demo.
Can assign different rewards to different entities, and also use the usual reward-distribution stuff - should be fairly flexible.
Note that the reward only counts if the entity's damage source was the player - ie if a pig dies because the agent pushed it into lava, the cause of damage will be lava, not the player, so the player won't get the reward.
Activity
[-]Feature Request[/-][+]Feature Request: Reward for hitting mob[/+]Added reward for damaging entities (#537)
DaveyBiggers commentedon Jun 2, 2017
Closed in #545.
See hit_test.py sample for a demo.
Can assign different rewards to different entities, and also use the usual reward-distribution stuff - should be fairly flexible.
Note that the reward only counts if the entity's damage source was the player - ie if a pig dies because the agent pushed it into lava, the cause of damage will be lava, not the player, so the player won't get the reward.