Forum Discussion
8 years ago
You can do it in two ways. Either by using Python and making use of this code:
"""
Mailbox Testing Cheats Pie Menu Tutorial Mod
by Scumbumbo @ ModTheSims
"""
import sims4.commands
import services
import injector
import objects.game_object
mbox_tc_sa_instance_ids = (11269596188621091361, 16221651884105033584)
mbox_tc_object_ids = (14940, )
@injector.inject_to(objects.game_object.GameObject, 'on_add')
def mbox_tc_add_super_affordances(original, self):
original(self)
if not self.guid64 in mbox_tc_object_ids:
return
sa_list = []
affordance_manager = services.affordance_manager()
for sa_id in mbox_tc_sa_instance_ids:
tuning_class = affordance_manager.get(sa_id)
if not tuning_class is None:
sa_list.append(tuning_class)
self._super_affordances = self._super_affordances + tuple(sa_list)
@sims4.commands.Command('mbox.tc_enable', command_type=sims4.commands.CommandType.Live)
def mbox_tc_enable_command(obj_id:int, _connection=None):
client = services.client_manager().get_first_client()
cheat_service = services.get_cheat_service()
cheat_service.enable_cheats()
cheat_service.send_to_client(client)
@sims4.commands.Command('mbox.tc_disable', command_type=sims4.commands.CommandType.Live)
def mbox_tc_disable_command(obj_id:int, _connection=None):
client = services.client_manager().get_first_client()
cheat_service = services.get_cheat_service()
cheat_service.disable_cheats()
cheat_service.send_to_client(client)
(code is from the Mailbox Tutorial by @Scumbumbo )
Or by going in The Sims 4 Studio and making a Interaction Tuning and adding that Interaction Tuning to the object_mailbox affordancelist. Good luck, and if you need any help just DM me. Cheers
"""
Mailbox Testing Cheats Pie Menu Tutorial Mod
by Scumbumbo @ ModTheSims
"""
import sims4.commands
import services
import injector
import objects.game_object
mbox_tc_sa_instance_ids = (11269596188621091361, 16221651884105033584)
mbox_tc_object_ids = (14940, )
@injector.inject_to(objects.game_object.GameObject, 'on_add')
def mbox_tc_add_super_affordances(original, self):
original(self)
if not self.guid64 in mbox_tc_object_ids:
return
sa_list = []
affordance_manager = services.affordance_manager()
for sa_id in mbox_tc_sa_instance_ids:
tuning_class = affordance_manager.get(sa_id)
if not tuning_class is None:
sa_list.append(tuning_class)
self._super_affordances = self._super_affordances + tuple(sa_list)
@sims4.commands.Command('mbox.tc_enable', command_type=sims4.commands.CommandType.Live)
def mbox_tc_enable_command(obj_id:int, _connection=None):
client = services.client_manager().get_first_client()
cheat_service = services.get_cheat_service()
cheat_service.enable_cheats()
cheat_service.send_to_client(client)
@sims4.commands.Command('mbox.tc_disable', command_type=sims4.commands.CommandType.Live)
def mbox_tc_disable_command(obj_id:int, _connection=None):
client = services.client_manager().get_first_client()
cheat_service = services.get_cheat_service()
cheat_service.disable_cheats()
cheat_service.send_to_client(client)
(code is from the Mailbox Tutorial by @Scumbumbo )
Or by going in The Sims 4 Studio and making a Interaction Tuning and adding that Interaction Tuning to the object_mailbox affordancelist. Good luck, and if you need any help just DM me. Cheers
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,501 PostsLatest Activity: 13 minutes ago
Community Highlights
Recent Discussions
- 42 minutes ago
- 3 hours ago
- 4 hours ago
- 5 hours ago