Change View Coordinate of Csgo bots.
Posted: Thu Feb 24, 2022 5:45 pm
How do I change the view angle of a bot? I know how to change it on a player and I can interact with bots a player instance the problem is that when I change the angle. The bots will change their viewing angle but they don't stay there they will always go back to where they looked previously. I have tried numerous things like setting the bot_stop Cvar or the bot_freeze Cvar that changed nothing.
This is my code so far:
And yes I tried using the method there I got the same results
This is my code so far:
Syntax: Select all
from events import Event
from filters.players import PlayerIter
@Event('player_say')
def on_player_say(event):
for player in PlayerIter('bot'):
x = randint(-90, 90)
y = randint(-90, 90)
z = randint(-90, 90)
player.client_command(f"setang {x} {y} {z}", True)
And yes I tried using the
Syntax: Select all
player.set_view_coordinates()