addMissionEventHandler ["CameraViewUpdated",{ params ["_oldMode","_newMode"]; }];
Something like this to detect after you change the cameraView (upon numpad Enter, entering optics etc) would be a nice addition.
addMissionEventHandler ["CameraViewUpdated",{ params ["_oldMode","_newMode"]; }];
Something like this to detect after you change the cameraView (upon numpad Enter, entering optics etc) would be a nice addition.
Is there currently some non-eventhandler script way to detect this?
"cameraView" command?
It seems hard to make this an eventhandler, because cameraView smoothly transitions between two modes.
And there are lots of places where it is set
I believe there is none unless we use EachFrame/Draw3D and call it a day. Smooth transition wouldn't be a concern to consider IMO, from what I can see firing an EH upon cameraView has changed is good enough to detect Visual/Pilot LOD change etc.
However and just thouht of, "BeforeCameraViewChanged" might be an addition to suppress the viewmode update etc I guess. Not really sure how it would have a usecase, so just sayin'.