Hi Dave,DaveG wrote:Don't want much do you
This code is a bit unusual in that although it's tagged as an animation, the anim length is irrelevant and is only there so the sim can process the code. Just attach it to any spare part on the model. The part itself doesn't need any animation.Code: Select all
<PartInfo> <Name>Hunter_smoke</Name> <AnimLength>1</AnimLength> <Animation> <Parameter> <Code> (A:Turb Eng1 corrected N2, percent) 98.4 < (A:GENERAL ENG1 THROTTLE LEVER POSITION,percent) 30 > && (A:TURB ENG1 N1,percent) 40 > && (A:INDICATED ALTITUDE,feet) 22000 < && if{ (A:SMOKE ENABLE,bool) ! if{ (>K:SMOKE_ON) } } els{ (A:SMOKE ENABLE,bool) if{ (>K:SMOKE_OFF) } } </Code> </Parameter> </Animation> </PartInfo>
As an animation does it need a GUID in the modeldef as well as the other code?
The "parked part" code works like a dream by the way,thank you!
Regards
Rob