Controll CsGo Bots to act like player eg, throw nades and so on using the python api
-
- Junior Member
- Posts: 10
- Joined: Sat Feb 12, 2022 10:26 am
Controll CsGo Bots to act like player eg, throw nades and so on using the python api
Is it possible to control a CsGo so that he can throw grenades? I know that it is possible to access the bots via the Ai-cfg where you describe how the bot should move and act. The problem with that is that I want the bot to act as I want. For example, set his crosshair at a certain pos and then use it whereas the ai script decides by itself when to do something based on the surrounding. So my exact problem is to set the Bots position and the crosshair position and then he should use the given grenade.
-
- Junior Member
- Posts: 10
- Joined: Sat Feb 12, 2022 10:26 am
Re: Controll CsGo Bots to act like player eg, throw nades and so on using the python api
I found a way to interact with bots on a csgo-server. You can simply access them via the player API because they are created as player instances. You can access them by simply calling the "Player()" generator with a number from 1 (yourself) to the number of bots that are on the server. The bots can do the same as a player as they are essentially that a player,
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 22 guests