plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

Indiafoxtecho avatar image
Indiafoxtecho asked thealx commented

CARRIER FUNCTIONALITIES - Tailhook location and how the hook position is calculated

Can we have a list of the variables / entries actually needed and (that actually do something in MSFS) to make a working tailhook?
Also, how is the tailhook position / extension calculated and from which entries/variables it is affected?

We have a tailhook (csutom coded - as we could not figure out some part of the sim implementation) on some of our products but it does not interact with the carrier working wires the way the SuperHornet ones does...
1656663577204.png

aircraft
1656663577204.png (907.1 KiB)
6 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Thanks for the HU - it worked. CVN-78 and F-35 now functional... the only problem I am having (on the carrier side) is that after an arrested landing the cable does not disengage from the hook... so, even if the F-35 has provisions for a cat launch, you cannot take-off anymore...
0 Likes 0 ·

Here is how we did it:

        <SimMission.Calculator id="DetachCableCalculator" InstanceId="{}">
            <SimBase.Descr>DetachCableCalculator</SimBase.Descr>
            <CalculatorParameterList>
                <FormulaParameter NameInFormula="LandedWithCable">
                    <CalculatorFormula>(A:CABLE CAUGHT BY TAILHOOK, number) 0 &gt; (A:SURFACE RELATIVE GROUND SPEED, feet/second) 1 &lt; and (A:SIM ON GROUND, bool) and</CalculatorFormula>
                </FormulaParameter>
            </CalculatorParameterList>
            <CalculatorActions>
                <CalculatorAction>
                    <CalculatorFormula>(X:LandedWithCable)</CalculatorFormula>
                    <Actions>
                        <WorldBase.ObjectReference id="Wait 5s" InstanceId="{}" />
                    </Actions>
                    <OnActionCompleteFormula>0 (&gt;A:TAILHOOK POSITION, percent over 100)</OnActionCompleteFormula>
                </CalculatorAction>
            </CalculatorActions>
        </SimMission.Calculator>
        <SimMission.WaitAction id="Wait 5s" InstanceId="{}">
            <Duration>5.000</Duration>
        </SimMission.WaitAction>

If you force the tailhook to the retracted position, it will detach the cable. Right now it is automatically triggered after landing, but you may want to change it to trigger on user input.

2 Likes 2 ·
Show more comments
Show more comments
Yes please. Upvoted.

Just got home from watching "Top Gun Maverick" again and I guarantee everybody in the cinema wants to land on a carrier now.


OK, almost everybody, but still...!


0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.