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

Latest Site News

Nysha's New Creators for July - posted on 1st Aug 2018 at 9:00 AM
Replies: 2 (Who?), Viewed: 1125 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