Can anyone give me a hand with this?
-
Hi, I'm new to XML coding and I've got a problem I need help with. I'm developing a model in .gmax for FSX and I'm attempting to trigger animated objects using a switch that determines which animation to run. I know the following example isn't correct, I use this illustrate what I'm trying to do: <PartInfo> <Name>xyz_switch</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (L:xyz_01, bool) 100 * (L:xyz_02, bool) 100 * (L:xyz_03, bool) 100 * (L:xyz_04, bool) 100 * </Code> </Parameter> </Animation> <MouseRect> <Cursor>Hand</Cursor> <CallbackCode> (L:xyz_01, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } (L:xyz_02, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } <if xyz_01 is has already been activated, then run xyz_02> (L:xyz_03, bool) 0 > if{ (L:xyz_02, bool) 0 } els{ 1 }<if xyz_01 and xyz_02 have already been activated, then run xyz_03> (L:xyz_04, bool) 0 > if{ (L:xyz_03, bool) 0 } els{ 1 }<if xyz_01, 02 and 03 have been activated, then run xyz_04> (L:xyz_05, bool) 0 > if{ (L:xyz_04, bool) 0 } els{ 1 }<if xyz_01,02,03 and 04 have been activated, then run xyz_05> </CallbackCode> </MouseRect> </PartInfo> Up to now, I've been trudging through and figuring out the code I've needed for new parts I'm creating, but this one's got me stumped!! Can anyone give me a hand with this? Thanks!! AJ
-
Hi, I'm new to XML coding and I've got a problem I need help with. I'm developing a model in .gmax for FSX and I'm attempting to trigger animated objects using a switch that determines which animation to run. I know the following example isn't correct, I use this illustrate what I'm trying to do: <PartInfo> <Name>xyz_switch</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (L:xyz_01, bool) 100 * (L:xyz_02, bool) 100 * (L:xyz_03, bool) 100 * (L:xyz_04, bool) 100 * </Code> </Parameter> </Animation> <MouseRect> <Cursor>Hand</Cursor> <CallbackCode> (L:xyz_01, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } (L:xyz_02, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } <if xyz_01 is has already been activated, then run xyz_02> (L:xyz_03, bool) 0 > if{ (L:xyz_02, bool) 0 } els{ 1 }<if xyz_01 and xyz_02 have already been activated, then run xyz_03> (L:xyz_04, bool) 0 > if{ (L:xyz_03, bool) 0 } els{ 1 }<if xyz_01, 02 and 03 have been activated, then run xyz_04> (L:xyz_05, bool) 0 > if{ (L:xyz_04, bool) 0 } els{ 1 }<if xyz_01,02,03 and 04 have been activated, then run xyz_05> </CallbackCode> </MouseRect> </PartInfo> Up to now, I've been trudging through and figuring out the code I've needed for new parts I'm creating, but this one's got me stumped!! Can anyone give me a hand with this? Thanks!! AJ
So what are you having difficulties with?
I know the language. I've read a book. - _Madmatt
-
So what are you having difficulties with?
I know the language. I've read a book. - _Madmatt
Hi, I need an expression that will cause the program to choose between 5 variables depending on which on is already active. Example: There are five motors. I press a button to start motor #1. If motor #1 isn't already running, then it starts. If it is already running then the #2 motor starts. If #1 and #2 motors are already running, then #3 when will start, and so on. That's all I'm trying to do really. Thanks! AJ
-
Hi, I need an expression that will cause the program to choose between 5 variables depending on which on is already active. Example: There are five motors. I press a button to start motor #1. If motor #1 isn't already running, then it starts. If it is already running then the #2 motor starts. If #1 and #2 motors are already running, then #3 when will start, and so on. That's all I'm trying to do really. Thanks! AJ
I don't understand how this relates to XML
I know the language. I've read a book. - _Madmatt
-
I don't understand how this relates to XML
I know the language. I've read a book. - _Madmatt
-
The program I am developing for uses XML to compile and animate objects that are placed within a game. The expression I need is real simple, I just don't know how to "word" it in code.
You have done nothing to clarify your question. I still don't see how this is related to XML at all or what exactly you are trying to accomplish. Don't assume everyone is standing over your shoulder looking at the code you are working with. Explain what you are doing, what you have tried, what issues you are facing and what you need help with.
I know the language. I've read a book. - _Madmatt
-
You have done nothing to clarify your question. I still don't see how this is related to XML at all or what exactly you are trying to accomplish. Don't assume everyone is standing over your shoulder looking at the code you are working with. Explain what you are doing, what you have tried, what issues you are facing and what you need help with.
I know the language. I've read a book. - _Madmatt