One thing I can get to work all the time. IS the load and save the VC camera position
if (firstStep) id= VCCAM;// if firststep then load vc camera position
sprintf(oapiDebugString(), "%d %d", id, VCCAM);
//sprintf(oapiDebugString(), "%d ", id);
firstStep = false;
switch (id) {
case 0: // commander position
SetCameraOffset(_V(-0.67, 2.55, 13.8));
SetCameraDefaultDirection(_V(0, 0, 1));
SetCameraMovement(_V(0, 0, 0.3), 0, 0, _V(-0.3, 0, 0), 75 * RAD, -5 * RAD, _V(0.3, 0, 0), -20 * RAD, -27 * RAD);
huds.hudcnt = _V(-0.671257, 2.523535, 14.969);
oapiVCSetNeighbours(-1, 1, -1, 2);
RegistergearleftVC();
RegisterVC_CdrMFD(); // activate commander MFD controls
RegisterVC_CntMFD(); // activate central panel MFD controls
vccameracase = 0;
VCCAM = 0;
ok = true;
break;
By running it I see the ID and VCCAM are the same but the view is not. When you press CTRL and an arrow then it switches.
I think because it has not gone to the ID it may just load the default camera location.
bool Atlantis::clbkLoadGenericCockpit ()
{
//SetCameraOffset (_V(-0.67,2.55,14.0));
//SetCameraDefaultDirection (_V(0,0,1));
return true;
}
any thoughts ideas