[BUG] EventBotTakeover not fired
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!
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?
This issue has been marked needs-author-action and may be missing some important information.
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.
This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days.