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

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this