Sign in to follow this  
Guest Trevor de S

XML L bool variable in makemdl.parts.xml ?

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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