Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
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
Deceased
#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