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]Add source attribute for ActorDeathEvent and is_player attribute for Actor #91

Open
umarurize opened this issue Nov 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@umarurize
Copy link

Add source attribute for ActorDeathEvent to get source actor (player or entity) who kills the actor involves in ActorDeathEvent

Add is_player attribute for Actor to judge if actor is player or not…..

@umarurize umarurize added the enhancement New feature or request label Nov 15, 2024
@xXLarryTFVWXx
Copy link

xXLarryTFVWXx commented Nov 30, 2024

I believe that Player is a child class, so you can check for that by using isinstance(<object>, Player) where <object>is the target or event sender.

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

No branches or pull requests

2 participants