February 27, 201115 yr Moderator On the T-38A Talon, the nose landing/taxi light extends only when both the position (nav) lights are on, and the gear is extended. When both conditions are TRUE, the light housing extends slowly (about 10 seconds), and retracts at the same speed.For some reason (probably due to advanced senility), I can't get this working properly. <PartInfo> <Name>T38_LandingLight</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (A:LIGHT NAV,bool) (A:GEAR POSITION, percent) ceil 100 == and 100 * </Code> </Parameter> <Lag>20</Lag> </Animation> </PartInfo> Any ideas why it's snapping instantly open/closed? :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 28, 201115 yr Author Moderator Answering my own question for the possible benefit of someone who might actually read this question:The problem was the position of the <Lag> parameter in the script's hierarchy: <PartInfo> <Name>T38_LandingLight</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (A:LIGHT NAV,bool) (A:GEAR POSITION, percent) ceil 100 == and 100 * </Code> <Lag>20</Lag> </Parameter> </Animation> </PartInfo> Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 28, 201115 yr Answering my own question for the possible benefit of someone who might actually read this question:The problem was the position of the <Lag> parameter in the script's hierarchy: <PartInfo> <Name>T38_LandingLight</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (A:LIGHT NAV,bool) (A:GEAR POSITION, percent) ceil 100 == and 100 * </Code> </Parameter> </Animation> </PartInfo>
February 28, 201115 yr Answering my own question for the possible benefit of someone who might actually read this question:The problem was the position of the <Lag> parameter in the script's hierarchy: <PartInfo> <Name>T38_LandingLight</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Lag>20</Lag> <Code> (A:LIGHT NAV,bool) (A:GEAR POSITION, percent) ceil 100 == and 100 * </Code> </Parameter> </Animation> </PartInfo> Does that work as well? :)
March 1, 201115 yr Author Moderator Not really. The <Lag> must be contained within the <Parameter> tags and after the <Code> tags. It makes no sense to try to apply a <Lag> before the <Code> is executed... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment