Jump to content
Sign in to follow this  
Varmint007

makemdl.parts.xml help

Recommended Posts

Guest maufus

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

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...