Sign in to follow this  
Guest zorzal7

Quesiton of the day.

Recommended Posts

Since MODULE_VARS are read only, it seems you have to use KEY_whatever presses to input changes into the sim. This would be fine for say steering or changing the throttle.How would you go about changing something like say the amount of fuel in a tank?Patrick

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

As an update, I found that in a callback I could use this: trigger_key_event(KEY_ADD_FUEL_QUANTITY, 0);which would add about 25% of the tank each time triggered, regardless of the UINT32 var. I guess this call doesn't use that data.So, this won't work. So, how do I control the quantity of fuel programmatically? Seems this is possible with some aircraft using fuel dumping.Patrick

Share this post


Link to post
Share on other sites

The fuel variables are accessible through FSUIPC - you can read and write to them directly. Don't think there is any other way to do it...Doug

Share this post


Link to post
Share on other sites

from the SDK:KEY_ADD_FUEL_QUANTITY ADD_FUEL_QUANTITY Adds fuel to the aircraft, 25% of capacity by default. 0

Share this post


Link to post
Share on other sites

>from the SDK:>>KEY_ADD_FUEL_QUANTITY ADD_FUEL_QUANTITY Adds fuel to the>aircraft, 25% of capacity by default. 0

Share this post


Link to post
Share on other sites

In the FSUIPC docs, i didn't found offsets for FUEL_QUANTITY_XX.. only for fuel level and capacity level..Anyone has found offsets for the fuel-quantity variables?

Share this post


Link to post
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
Sign in to follow this