Chocks Away!

A quiet place for budding model makers to share thoughts, get answers to questions and request and share references.

Moderators: Guru's, The Ministry

robcarrich
Concorde
Concorde
Posts: 1007
Joined: 12 Aug 2008, 15:58
Location: Alconbury Weston, UK

Re: Chocks Away!

Post 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

User avatar
DaveG
The Gurus
Posts: 7736
Joined: 23 Jun 2004, 18:05
Location: in a deep, dark hole somewhere.
Contact:

Re: Chocks Away!

Post by DaveG »

Yes Rob, add the GUID as normal.
Dave G.

robcarrich
Concorde
Concorde
Posts: 1007
Joined: 12 Aug 2008, 15:58
Location: Alconbury Weston, UK

Re: Chocks Away!

Post by robcarrich »

Thank you very much Dave, I might have to play around with this one for a while!

Rob Richardson

Post Reply