SimpleAirplane, SetCrashMode and reload?
SimpleAirplane, SetCrashMode and reload?
Hi, In the example SimpleAirplane, I used m_BaseObject.SetCrashMode(dDeltaT) in the function: STDMETHOD (Update)(double dDeltaT) . It will popup "Crashed". However it does not reload SimpleAirplane? What should I do?
-
- Lockheed Martin
- Posts: 1207
- Joined: Tue Sep 25, 2012 2:34 pm
Re: SimpleAirplane, SetCrashMode and reload?
Hello,
Try calling SetCrashMode in your Simulate callback and passing in the provided delta time. The crash state will reset after a period of time and reload your last scenario.
Regards,
Clifton
Try calling SetCrashMode in your Simulate callback and passing in the provided delta time. The crash state will reset after a period of time and reload your last scenario.
Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Prepar3D® Software Engineer Sr.
Re: SimpleAirplane, SetCrashMode and reload?
Yes, it worked! Thanks so much! It can't reload the last scenario because SetCrashMode is written in the condition: "if (IsNormalMode())".Clifton Crane wrote: ↑Wed Jul 26, 2023 11:07 am Hello,
Try calling SetCrashMode in your Simulate callback and passing in the provided delta time. The crash state will reset after a period of time and reload your last scenario.
Regards,
Clifton