Okay, I'll have a look then at ScanCellObjects since I want to specifically get dead actors.
As for the uninstaller I was thinking of using ClearIntValuePrefix etc. since all my saved values start with the same prefix (" EBD_" ) which I think is unique enough so I don't touch other mods.
However, am I right in the assumption that I would not need an uninstaller if I were to use JsonUtil? Since all value associations are only written to external jsons? Or are they kept as copies in the savegame (for error checking or something) as well?
EDIT: I know it's probably not feasible but I ask anyway:
Would it be possible to provide some uninstallation framework?
I.E. I register my mod with something like RegisterModUninstall("myMod.esp", "prefix_to_clear" ). Then, when myMod.esp vanishes from the load order JsonUtil would remove all values with the "prefix_to_clear".
It's probably much more work than I think but it would really streamline removal of a mod.
EDIT 2: I had a look at the ScanCellObjects function. There seems to be an issue though with the keyword parameter.
This will return zero actors: ScanCellObjects(43, PlayerREF, 0.0, EBDScriptKeyWord)
This works fine: ScanCellObjects(43, PlayerREF, 0.0)
Checking akActor.hasKeyword(EBDScriptKeyWord) returns true for all the actors I want, so the keyword is definitely there.
Edited by MongoMonk, 07 February 2016 - 10:41 AM.