Home | Download | Discussion | Help | Site Map | New Posts | Sign in

Latest Site News

MTS speed build challenge results - posted on 11th Nov 2018 at 8:38 PM
Replies: 2 (Who?), Viewed: 1212 times.
Test Subject
Original Poster
#1 Old 9th Feb 2018 at 10:24 PM
Default Simple command doesn't work
My script is loaded but my command doesn't work.

Here is the code:

Code:

import sims4.commands

@sims4.commands.Command('afirst', command_type=sims4.commands.CommandType.Live)
def first_command(_connection=None):
output = sims4.commands.Output(_connection)
output('cool! My first message')


Thanks!
Advertisement
Theorist
#2 Old 10th Feb 2018 at 4:46 AM
To send to the cheat window output, use CheatOutput:
Code:
import sims4.commands

@sims4.commands.Command('afirst', command_type=sims4.commands.CommandType.Live)
def first_command(_connection=None):
    output = sims4.commands.CheatOutput(_connection)
    output('cool! My first message')
Test Subject
Original Poster
#3 Old 10th Feb 2018 at 11:32 AM
Quote:
Originally Posted by scumbumbo
To send to the cheat window output, use CheatOutput:
Code:
import sims4.commands

@sims4.commands.Command('afirst', command_type=sims4.commands.CommandType.Live)
def first_command(_connection=None):
    output = sims4.commands.CheatOutput(_connection)
    output('cool! My first message')


Thanks :D
Back to top