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: 987
Joined: 12 Aug 2008, 15:58
Location: Alconbury Weston, UK

Chocks Away!

Post 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

User avatar
DaveB
The Ministry
Posts: 30457
Joined: 17 Jun 2004, 20:46
Location: Pelsall, West Mids, UK
Contact:

Re: Chocks Away!

Post 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
ImageImage
Old sailors never die.. they just smell that way!

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

Re: Chocks Away!

Post 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

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

Re: Chocks Away!

Post 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>
Dave G.

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

Re: Chocks Away!

Post 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

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

Re: Chocks Away!

Post 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.
Dave G.

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

Re: Chocks Away!

Post 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

User avatar
Garry Russell
The Ministry
Posts: 27180
Joined: 29 Jan 2005, 00:53
Location: On the other side of the wall

Re: Chocks Away!

Post 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
Garry

Image

"In the world of virtual reality things are not always what they seem."

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

Re: Chocks Away!

Post 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

User avatar
Garry Russell
The Ministry
Posts: 27180
Joined: 29 Jan 2005, 00:53
Location: On the other side of the wall

Re: Chocks Away!

Post 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
Garry

Image

"In the world of virtual reality things are not always what they seem."

Post Reply