Sign in to follow this  
Au MaV

Can Anybody reverse this xml gauge?

Recommended Posts

Hi Ive edited some code for a spoiler it works perfect but in reverse. In its current form with the gear up I get partial deployment of the spoiler and full deployment with the gear down.What Im aiming for is partial deployment with gear down and full with gear up.Ive tried just about every configuration I can think of but nothing works or only partially worksAny help much appreciatedThanksWozzaDa arse about code :) (A:GEAR CENTER POSITION,bool) if{ (L:spl_drop,bool) if{ 0 (>L:spl_drop,bool) 16384 (>K:AXIS_SPOILER_SET) } } els{ (A:SPOILERS HANDLE POSITION,percent) 99 > if{ (L:spl_drop,bool) ! if{ 1 (>L:spl_drop,bool) 2000 (>K:AXIS_SPOILER_SET) } els{ 0 (>L:spl_drop,bool) -16384 (>K:AXIS_SPOILER_SET) } }

Share this post


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

Hi,May be (A:GEAR CENTER POSITION,PERCENT) works better.e.g > 50 or < 50 Jan"Beatus Ille Procul Negotiis"

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