Page MenuHomeFeedback Tracker

[Feature Request] cameraView update Mission EH
New, NormalPublic

Description

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.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

POLPOX created this task.Feb 8 2025, 12:16 PM
dedmen added a subscriber: dedmen.EditedWed, Feb 12, 4:34 PM

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'.

Lexx2k added a subscriber: Lexx2k.Wed, Feb 19, 6:37 PM