Clarification needed on EventBotTakeover — @event.Bot seems to point to the human controller instead of the bot #1102
Answered
by
roflmuffin
StormySeaSailor
asked this question in
Q&A
|
Hello, I'm fairly new to CS2 development/CounterStrikeSharp and would be grateful if someone could help me. ContextI’m testing how EventBotTakeover works in CounterStrikeSharp to detect when a player takes control of a bot. Minimal ExampleHere's what I'm getting: Questions
Thank you in advance |
Answered by
roflmuffin
Nov 5, 2025
Replies: 1 comment 1 reply
|
I think this is just an issue with the valve event, they put the same userid in both spots as far as I can tell 🤷. The workaround is to loop through every player and check their schema property for bot control |
1 reply
Answer selected by
StormySeaSailor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this is just an issue with the valve event, they put the same userid in both spots as far as I can tell 🤷. The workaround is to loop through every player and check their schema property for bot control