Making droppable objects

If you have a payware prog whether it be a model, scenery or utility that you have tried.. tell us about it here.

Moderators: Guru's, The Ministry

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

Re: Making droppable objects

Post by DaveG »

Hi X_eidos2,

Sorry if my original answer caused offence.

If you haven't worked out the visibility code for the weapons yet, here's the code I used for the rocket projectiles on the Beaufighter:

Code: Select all

	<PartInfo>
	<Name>BF_RPStarboard</Name>
	<Visibility>
		<Parameter>
			<Code>
				(A:droppable objects type:0, string) 'RP salvo' scmi 0 == if{ (A:droppable objects count:0, number) 0 > if{ 1 } els{ 0 } } els{ (A:PAYLOAD STATION WEIGHT:2,Pound) 259 > if{ 1 } els{ 0 } }
			</Code>
		</Parameter>
	</Visibility>
	</PartInfo>
In the Christmas spirit :xsmile:
Dave G.

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

Re: Making droppable objects

Post by DaveB »

Ahh.. christmas spirit.. works for me :thumbsup:

Let's hope this solves some of the mystery X-eidos2 and get's you going in the right direction ;) TBH, I'd have understood it better printed in latin.. at least I could've put it through babelfish :lol:

Best of luck with the project ;)

ATB

DaveB B)smk
ImageImage
Old sailors never die.. they just smell that way!

X_eidos2
Chipmunk
Chipmunk
Posts: 4
Joined: 31 May 2008, 12:46

Re: Making droppable objects

Post by X_eidos2 »

Thank you gentlemen.

Having the sample code will be helpful, but not for this project. Seems one of the limitations of droppable objects is that the object will not trigger a ground impact special effect if the object has forward movement, which would be the case with a smoke rocket.

Thank you Mr. Garwood for sharing a copy of the xml code. It certainly was the missing part in trying to solve the puzzle. Hopefully others will benefit from seeing it as well. As a side note: My compliments on your Beaufighter model. When I was working at Eidos Interactive, working on the online game Confirmed Kill (never published) one of the last aircraft I built was a Beaufighter. I appreciate the quality you put into it.

Merry Christmas to all. :xsmile:

colin.scot-jackson
Chipmunk
Chipmunk
Posts: 1
Joined: 19 Sep 2013, 15:29

Re: Firing Beaufighter Ordnance

Post by colin.scot-jackson »

I can get the rockets and Torps hung but cant find a way to fire them. Shift+D is assigned as the FSX droppable objects but no reaction. Am I missing something in the VC I wonder ? rgds csj

Post Reply