Forum Discussion

IngeJones's avatar
9 years ago

def get_objects_of_def_id_gen

Is the following function referring to the object Tuning IDs? And if so, please could you give me an example of use since the existing decompiled scripts don't seem to use it at all.

def get_objects_of_def_id_gen(self, *definition_ids):
for obj in self._objects.values():
while any(obj.definition.id == d_id for d_id in definition_ids):
yield obj

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.4,699 PostsLatest Activity: 8 hours ago