def interval(self, data): try: for t in self.templates: objects = host.omgr_getObjectsOfTemplate(t) for obj in objects: if obj.isValid() and game.utilities.reasonableObject(obj) and not obj.getIsWreck(): pos = obj.getPosition() game.utilities.createObject('objective_marker', pos) except Exception, e: print 'destroyObjective interval exception', e
def getObjectsOfTemplate(self, templ): return host.omgr_getObjectsOfTemplate(templ)