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

[BUG] EventBotTakeover not fired #474

Closed
bet0v opened this issue May 31, 2024 · 4 comments
Closed

[BUG] EventBotTakeover not fired #474

bet0v opened this issue May 31, 2024 · 4 comments
Labels
area-API-GameEvents needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity

Comments

@bet0v
Copy link

bet0v commented May 31, 2024

Hi, when writing this in the Load method of my plugin, I never see the corresponding log
RegisterEventHandler<EventBotTakeover>((@event, info) => { Console.WriteLine($"EventBotTakeover"); return HookResult.Continue; });
Wether in Post or Pre HookMode. I'm correctly registering to many other events without issues.
Please note that I do see a message in the logs when taking control of a bot (that is weirdly ordered if I'm honest) :
Player [BotName] took control bot [PlayerName] ([PlayerIndex])

My goal is to set the bot pawn's health when a player takes control of it (so the new player's pawn).
Please tell me if I am trying to use the wrong event to achieve this goal.

Thanks in advance and keep up the good work!

@github-actions github-actions bot added the untriaged New issue has not been triaged label May 31, 2024
@roflmuffin
Copy link
Owner

Does the event fire if hooked at a later stage? Would you be able to try adding the event handler in the OnMapStart listener and see if that works?

@roflmuffin roflmuffin added needs-author-action An issue or pull request that requires more info or actions from the author. area-API-GameEvents labels Jul 26, 2024
Copy link

This issue has been marked needs-author-action and may be missing some important information.

@github-actions github-actions bot removed the untriaged New issue has not been triaged label Jul 26, 2024
Copy link

This issue has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

Copy link

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-API-GameEvents needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity
Projects
None yet
Development

No branches or pull requests

2 participants