Jump to content
Sign in to follow this  
Guest Trevor de S

XML L bool variable in makemdl.parts.xml ?

Recommended Posts

Guest Cougar

Hi,I have made an xml gauge with an L bool variable. Good part: Gauge works fine. Bad part: I want to add a part in the makemdl.parts.xml. Up to now nothing worked.How do I implement the L bool variable inbetween the animation tacks?ReagardsDirk

Share this post


Link to post
Share on other sites
Guest Trevor de S

Hi,The code in the makemdl.parts.xml file is very simple but depends on the animation key code in the .x file.In your case assuming the .x file has something of the form:Animation your_part {{ your_part }AnimationKey {0;2;0;4;-1.000000,0.000000,0.000000,0.000000;;, //position when OFF100;4;-0.981627,0.000000,-0.190809,0.000000;;; //position when ON}}then you need your XML file entry to provide a value of either 0 or 100 to match the keyframe values, typically this might be:your_part (L:your_xml_variable,bool) 100 *Regards,Trevor.

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...