Jump to content

fuel_pump_on


zman0801

Recommended Posts

Hallo an Alle,

 

vornweg, ich bin neuer X-Plane User.

 

Ich will mit einem Schript den Fuel_pump_schalter setzen da ich einen FlightMaster Yoke habe und die schalter sollen auch das machen was draufsteht.

bei den LandingLights funktioniert das nicht.

 

Ich habe den Folgenden Code geschrieben.

 

dataref("FuelPump","sim/cockpit2/engine/actuators/fuel_pump_on","writable")
function FuelPump_button()
   if button(161)  then
     set ("sim/cockpit2/engine/actuators/fuel_pump_on",1)
   else    
     set ("sim/cockpit2/engine/actuators/fuel_pump_on",0)    
   end    
end

do_every_frame("FuelPump_button()")

 

 

Jetzt ist das aber ein Integer array mit der Grösse 8. Wie setze ich das in LUA?

 

VG Dirk

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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. Privacy Policy & Terms of Use