I have a need for some code that iterates over the locks in game and locks them if unlocked - I'm not fussed about what code or key the locks need as players nor admin need access to these locks while playing, I just want them locked and forgetten.
I need this to be something I can run once when the server runs the OnNewSave so I'm not too fussed about performance impact, and I don't see there ever being more than maybe a hundred locks in the world at run time.
How would I acheive this?
Any help appreciated, thanks in advance :)