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

Latest Site News

MTS Speed-Building Challenge - posted on Yesterday at 7:25 PM
Replies: 2 (Who?), Viewed: 1176 times.
Test Subject
Original Poster
#1 Old 9th Feb 2018 at 9: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 3: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 10: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