How would I go about changing a particular function in a lua file, for a Sim mod?
I've made a mod that changes a blueprint by adding to it/overwriting part of it, without overwriting the entire file. but I'm curious what the code looks like for overwriting a single function. OR, can I not do that?
Can I replace just one function from units.lua or would I need to overwrite the entire "units.lua" file?
I would prefer to overwrite just a single function, if that is possible. It would make my mod probably easier to maintain going forward. Unless you think there is an advantage to overwriting the entire file.
Also, if you could point me to an example of a mod that does this, I could download that and look at it.
Thanks.