So, I’m interested in making a small upgrade for my toolkit plugin that would detect when a script has been modified while the developer wasn’t editing it, and then fire a notification warning the developer that scripts were changed.
To do this I would like to detect which script is being actively edited by the developer, so that I could detect when other scripts were changed under their nose.
This is because I know a few less-experienced developers who are more likely to install infected plugins that will automatically backdoor their games, but I don’t have a whole lot of one-on-one time with them to help them out.
The problem is, I am having a hard time finding plugin documentation on how to detect the script currently open in the script editor.
If anybody knows about this, that would help me out.