Jump to content
Sign in to follow this  
Guest zorzal7

Quesiton of the day.

Recommended Posts

Guest Patrick_Waugh

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
Guest Patrick_Waugh

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
Guest JeanLuc_

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
Guest Patrick_Waugh

>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
Guest zorzal7

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...