Jump to content
The simFlight Network Forums

I want to be able to inject possible failures into p3dv4.5

Recommended Posts

8 hours ago, Brian S said:

Would LUA and FSUIPC registered,  work for something like this?

 Say I want a 2% chance of something going wrong but I want an option to increase that number.

You can certainly play havoc with some of the systems, for default aircraft anyway, through FSUIPC offsets you can write to.  There are some specific offsets concerned with instrument failures too, but i'm not sure how well they work.

For add-on aircraft it might be another matter, though, as many of them have their own systems, programmed outside of the code affected by FSUIPC.

As for the second part of your question, that is all completely in the realm of programming, and whilst with Lua it would certainly be easy enough to do, you'd need to learn more about Lua if it is new to you. I'm afraid I can't help directly there -- you need to refer to the very good reference and tutorial materials available on the www.lua.org website, and available in published books on Lua.



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.