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

Feature Request: Reward for hitting mob #537

Closed
OfriHarlev opened this issue May 22, 2017 · 1 comment
Closed

Feature Request: Reward for hitting mob #537

OfriHarlev opened this issue May 22, 2017 · 1 comment

Comments

@OfriHarlev
Copy link

Ability to give reward for hitting mob

@DaveyBiggers DaveyBiggers changed the title Feature Request Feature Request: Reward for hitting mob May 24, 2017
@DaveyBiggers
Copy link
Member

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.

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

2 participants