Syntax: Select all
@OnPlayerRunCommand
def run_cmd(player, user_cmd):
user_cmd.view_angles.x = my_val_x
user_cmd.view_angles.y = my_val_y
and
Syntax: Select all
@OnPlayerRunCommand
def run_cmd(player, user_cmd):
user_cmd.view_angles = QAngle(my_val_x, my_val_y, 0.0)
In both cases, when tested in game the player's view angle seems to snap to <0.0, 0.0, 0.0>. I am trying to force the view angle of bots btw.
CS:GO, Linux
Thanks