I try use OnPlayerRunCommand for TF2, but it not fired.
Syntax: Select all
from listeners import OnPlayerRunCommand
def load():
print("Script run")
@OnPlayerRunCommand
def on_player_run_command(player, user_cmd):
print("Hook")
In the game I shot and jumped. No "Hook" message appeared in the console.
Installed SP version for TF2. OS: Windows