Page 1 of 2

Chocks Away!

Posted: 18 Oct 2009, 14:21
by robcarrich
Can anyone help me please with the FSX visibility code for chocks to appear when the engine (single jet) is shut down, xml code is like an alien language to me, I'm sure it's easy, but it's not so for me! Thank you in advance!

Rob Richardson

Re: Chocks Away!

Posted: 18 Oct 2009, 14:24
by DaveB
Welcome Rob :hello:

It's all foreign to me too mate but there'll be someone here with the answer ;)

ATB

DaveB B)smk

Re: Chocks Away!

Posted: 18 Oct 2009, 14:38
by robcarrich
Hi Dave,
I really hope so, I've managed to get other visibility code working but not this one! I hate to see objects following me around the sky!

Rob Richardson

Re: Chocks Away!

Posted: 18 Oct 2009, 15:31
by DaveG
Hi Rob :hello:

I used this for the chocks etc on the Hunters:

Code: Select all

<PartInfo>  
		<Name>parked_part</Name>  
			<Visibility>
				<Parameter>
					<Code>
						(A:GENERAL ENG RPM:1,RPM) 100 < (A:SIM on GROUND, bool) + (A:BRAKE PARKING POSITION, bool) + 3 == 
					</Code>  
				</Parameter>  
			</Visibility>
	</PartInfo>

Re: Chocks Away!

Posted: 18 Oct 2009, 15:58
by robcarrich
Hello Dave,
Thank you very much for that, just what I was after!This might be a bit cheeky but the smoke system on the hunter is so good, you would'nt care to share the code for that would you.

Thanks Again
Rob

Re: Chocks Away!

Posted: 18 Oct 2009, 16:26
by DaveG
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.

Re: Chocks Away!

Posted: 18 Oct 2009, 17:50
by robcarrich
Thank you very much Dave,
Thats beautiful!
I'ts taken me two weeks to pluck up the courage to come over and ask questions so I need to make the most of it while I'm here!

Thanks,Thanks
Rob Richardson

Re: Chocks Away!

Posted: 18 Oct 2009, 18:23
by Garry Russell
HI Rob

Welcome aboard :hello:

We are here to share.....so no harm in asking :D

Is your project a secret?.....you can mention it here, I promise I won't tell anyone 8)

Garry

Re: Chocks Away!

Posted: 18 Oct 2009, 20:24
by robcarrich
Hi Garry,
No secret, working on a Gannet for FSX, there is a mass of information accumulating on it over at CBF, got some really accurate drawings on all variants, one little word was all it took and the info came flooding in!

Rob

Re: Chocks Away!

Posted: 18 Oct 2009, 20:34
by Garry Russell
AH right

I didn't realise it was you :lol: :lol: :lol:

You'll find a few of us across here too :)

Garry