June 26, 200619 yr 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
June 26, 200619 yr 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
June 26, 200619 yr 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
June 27, 200619 yr from the SDK:KEY_ADD_FUEL_QUANTITY ADD_FUEL_QUANTITY Adds fuel to the aircraft, 25% of capacity by default. 0
June 27, 200619 yr >from the SDK:>>KEY_ADD_FUEL_QUANTITY ADD_FUEL_QUANTITY Adds fuel to the>aircraft, 25% of capacity by default. 0
August 29, 200619 yr 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?
Create an account or sign in to comment