Clarification needed on EventBotTakeover — @event.Bot seems to point to the human controller instead of the bot #1102
-
|
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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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