Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if PLANE_ICAO == "B407" then
- dataref("InletCap", "Equip/InletCap", "writable")
- dataref("OutletCap", "Equip/OutletCap", "writable")
- dataref("PitotCap", "Equip/PitotCap", "writable")
- dataref("Tie0", "Equip/Tie0", "writable")
- dataref("Tie1", "Equip/Tie1", "writable")
- dataref("Tie2", "Equip/Tie2", "writable")
- dataref("Tie3", "Equip/Tie3", "writable")
- function toggle()
- if not button(17) and last_button(17) then
- InletCap = InletCap == 0 and 1 or 0
- OutletCap = OutletCap == 0 and 1 or 0
- PitotCap = PitotCap == 0 and 1 or 0
- Tie0 = Tie0 == 0 and 1 or 0
- Tie1 = Tie1 == 0 and 1 or 0
- Tie2 = Tie2 == 0 and 1 or 0
- Tie3 = Tie3 == 0 and 1 or 0
- end
- end
- do_every_frame("toggle()")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement