You can't ask for the current view settings, unless you use
ArmALib. Your script could remember which setting it last used though and assume that nothing external has changed the setting.
class RscDisplayEmpty;
class RscDisplayMission : RscDisplayEmpty {
access = ReadAndWrite;
idd=46;
onLoad="execVM ""\loki_dlg\init.sqf"";";
};
What you are doing is using the OnLoad event handler on the standard BIS Mission selection dialog. Whenever that display is loaded, then your script is run. Please, please, please don't use this method to start up your script. By using a BIS event handler like this, you are running the risk of overwriting someone else's use of it (perhaps BIS in the future?), or they could overwrite your use of it (e.g. since you presumably got this method from another addon, you are already incompatible with that addon!). Just use the de facto method,
XEH, like everyone else should be doing, for 100% compatibility.
On another note, I think you should make clear that using this addon in MP games would be considered cheating, unless everyone agreed to use it. In COOP, you'd be able to see further than the opposing AI, since you aren't changing the server view distance; in PVP, you'd be able to see further than players on the other side.