I'm trying to use a SayCommand or similar without having the actual command display in chat so when a user type for example "!test" the callback runs but you don't see in chat the test: "!test". That's the way it worked in EventScripts but with Source.Python I can't find a way to stop it.
Anyone knows if it's possible?
Not display command in chat
Re: Not display command in chat
Syntax: Select all
from commands import CommandReturn
from commands.say import SayCommand
@SayCommand('!test')
def _test_command(command, index, team_only):
# stop command from showing in chat
return CommandReturn.BLOCK
Re: Not display command in chat
Thx a lot! Will try and report
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 17 guests