Yes. I believe so. I can get the animations to move. I have it so those post show up on a key command.
---------- Post added at 06:06 PM ---------- Previous post was at 09:31 AM ----------
Ok another code question. I have all animations controlled by the dialogue window. I want a button to show the posts mesh or turn them off.
So if IDC_POSTYES is pushed set POSTMESH to always
The error I get is :
Error 3 error C2065: 'POSTMESH' : undeclared identifier E:\orbiter2010p1A\Orbitersdk\samples\SLSTOWER\SLSTOWER.CPP 560 1 SLSTOWER
in my h:
UINT POSTMESH;
in the cpp:
POSTMESH = AddMesh(oapiLoadMeshGlobal("SLSTOWERLEGS"));//mesh4
SetMeshVisibilityMode(POSTMESH, MESHVIS_NEVER);
and no issues this this part.
Then I have button named "LAUNCH" it should set all swing towers to where they are at start and release.
---------- Post added at 06:06 PM ---------- Previous post was at 09:31 AM ----------
Ok another code question. I have all animations controlled by the dialogue window. I want a button to show the posts mesh or turn them off.
Code:
else if (SendDlgItemMessage(hWnd, IDC_POSTYES, BM_GETSTATE, 0, 0) & BST_PUSHED) {
sts->SetMeshVisibilityMode(POSTMESH, MESHVIS_ALWAYS);
}
else if (SendDlgItemMessage(hWnd, IDC_POSTNO, BM_GETSTATE, 0, 0) & BST_PUSHED) {
sts->SetMeshVisibilityMode(POSTMESH, MESHVIS_NEVER);
}
The error I get is :
Error 3 error C2065: 'POSTMESH' : undeclared identifier E:\orbiter2010p1A\Orbitersdk\samples\SLSTOWER\SLSTOWER.CPP 560 1 SLSTOWER
in my h:
UINT POSTMESH;
in the cpp:
POSTMESH = AddMesh(oapiLoadMeshGlobal("SLSTOWERLEGS"));//mesh4
SetMeshVisibilityMode(POSTMESH, MESHVIS_NEVER);
and no issues this this part.
Then I have button named "LAUNCH" it should set all swing towers to where they are at start and release.
Last edited: