Jump to content
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... :)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest ghost84

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! ;)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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