Forum Discussion
11 years ago
@sims4.commands.Command('name1', 'name2', ...)
That was exactly what I tried =D but that did not work, the result was "invalid command" or "unable to" or something along those lines (in the console output) .. I didn't take a screenshot of the exact wording, but I can try again and post one.
My code was
@sims4.commands.Command('t', 'd', 'debug', command_type=sims4.commands.CommandType.Live)
def testing(enable:bool=None, _connection=None):
output = sims4.commands.CheatOutput(_connection)
if enable is not None:
if enable:
command = 'testingcheats on'
sims4.commands.client_cheat(command, _connection)
else:
command = 'testingcheats off'
sims4.commands.client_cheat(command, _connection)
else:
output("You need to turn this on or off with 't', 'true', 'on', '1', 'yes', 'y', 'enable' or 'f', 'false', 'off', '0', 'no', 'n', 'disable'")
I was wondering whether the aliases perhaps need to be in an array or something?
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,600 PostsLatest Activity: 7 hours ago
Community Highlights
Recent Discussions
- 4 hours ago
- 6 hours ago
- 9 hours ago