March 11, 200521 yr 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.
March 13, 200521 yr Author Commercial Member 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 Jon Blum Vertical Reality Simulations
Create an account or sign in to comment