Sign in to follow this  
Varmint007

makemdl.parts.xml help

Recommended Posts

Hi, I'd need a little help with my part in makemdl.parts.xml file.I have four parts, in a plane, I want to make them hide/show with a single variable in all combinations. The basic visibility condition is something like:mypart1BRAKE LEFT POSITIONpercent2550But what if I wanted to use a bitwise AND condition (say, for instance, "BRAKE LEFT POSITION & 1" to make mypart1 visible only for odd percentage values)? Thankyou.

Share this post


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

In a case where you don't want to animate directly based on the value of a sim variable, use the construct.In the case of testing for odd or even values, just use the MOD(%) function:(A:BRAKE LEFT POSITION, percent) 2 % 0 ==xxxxNot tested, but that _should_ make the part visible only if the the brake position percentage is an even number.--Jon

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