Forum Discussion

IngeJones's avatar
10 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

16 Replies

Replies have been turned off for this discussion

Featured Places

Node avatar for The Sims 4 Mods & Custom Content

The Sims 4 Mods & Custom Content

Find tips, tutorials and troubleshooting for mods and custom content, and The Sims 4 patch files here.Latest Activity: 5 months ago
16,405 Posts