|
Post by yungjabo on Jul 2, 2024 5:40:37 GMT -5
Which command is responsible for moving sims to other houses?
How to run a script (method of moving sims) by trigger? For example, only on Friday in the game or only when the world starts.
import sims4.commands
import services
@sims4.commands.Command('myfirstscript', command_type=sims4.commands.CommandType.Live)
def myfirstscript(_connection=None):
output = sims4.commands.CheatOutput(_connection)
try:
household_tracker = (
services.household_manager()
)
households = household_tracker.get_all()
for household in households:
output(f"Attributes: {household.__dict__}")
break
except Exception as e:
output(f"Произошла ошибка: {e}")
|
|