Page 2 of 2

Re: Chocks Away!

Posted: 18 Oct 2009, 21:59
by robcarrich
DaveG wrote:Don't want much do you :lol:

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>
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.
Hi Dave,
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

Re: Chocks Away!

Posted: 18 Oct 2009, 22:23
by DaveG
Yes Rob, add the GUID as normal.

Re: Chocks Away!

Posted: 18 Oct 2009, 22:53
by robcarrich
Thank you very much Dave, I might have to play around with this one for a while!

Rob Richardson