Jump to content
The simFlight Network Forums

FSUIPC Programmatically shutdown engine


Recommended Posts

Hi -

Anyone know how to cause an engine failure using FSUIPC programmatically? I've tried setting a bunch of things to zero using several FSUIPC_Write & one FSUIPC_Process commands (for engine #1), with no apparent luck. I need to make an engine fail - permanently (for the duration of the flight) and would prefer not to set the mixture to 0 - as the pilot could then just (I presume) re-adjust the mixture and start the engine. Any suggestions would be appreciated!

Thanks!

Link to comment
Share on other sites

Anyone know how to cause an engine failure using FSUIPC programmatically? I've tried setting a bunch of things to zero using several FSUIPC_Write & one FSUIPC_Process commands (for engine #1), with no apparent luck.

First of all, try out various things using FSInterrogate rather than rewriting and recompiling programs. It will be much quicker and less error prone. FSInterrogate can write to any FSUIPC offset as well as read them all.

Have you tried using any of the failure controls? The engine ones are at 0B6B, part of a list there. Another list appears at 3BD6.

Regards,

Pete

Link to comment
Share on other sites

You can fail engines by setting bits in offset 0B6B:

TempByte = 0

TempByte = TempByte or Bit0 <= fails Engine No. 1

FSUIPC_Write(0B6B, 1, TempByte, dwResult)

FSUIPC_Process(dwResult)

For repairing the engine, use TempByte = TempByte and not Bit0

Good luck!

CATIII

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.