Sign in to follow this  
n4gix

XML Controller

Recommended Posts

Well, having had no luck in the other thread, here's another idea to try. I have discovered that you CAN use a and in the code... BUT you need a variable that won't change instantly from 0 to 100!So, can anyone help me design a panel gauge that will provide a timed output variable?Something along the line of:if (spoilers=100 & L:ChuteTimer < 401) then (L:ChuteTimer = L:ChuteTimer + 1)Basically, I need a control variable that is triggered by the spoiler key and will increment from 0 to 400.When the a/c in on the ground, the L:ChuteTimer will then decrement from 400 to 0 to provide a second animation sequence.The makemdl.parts.xml code will be like this: SR20_chute_rocketL:ChuteTimer, enum0100L:ChuteTimer, enum60Thanks in advance for anyone who can help... :)

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,Try something like this:(A:SPOILERS LEFT POSITION,bool) 1 == (L:ChuteTimer,number) 401 < && if{ (L:ChuteTimer,number) 1 + >(L:ChuteTimer,number) } (A:SPOILERS LEFT POSITION,bool) 0 == (L:ChuteTimer,number) 0 > && if{ (L:ChuteTimer,number) 1 - >(L:ChuteTimer,number) } I'm not sure, if the A:SPOILERS LEFT POSITION values are correct, maybe you must play a little bit with them. regards,FranzGKFlusi Cirrus SR20/22 Project :-)

Share this post


Link to post
Share on other sites

Thanks... this will provide a starting point for further testing... It's a pity our two projects don't share a common modeling platform, 'cause it's a PITA to re-invent the wheel! ;)

Share this post


Link to post
Share on other sites

I was unable to use the code listed, but have instead spent ten minutes programming the desired function in a C gauge.Thanks go to Doug Dawson for his kind assist with the fiddly-bits needed to fire an L:variable from a C gauge.

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