Profile image

Output current Targeting Mode to a label (or whatever you want)

11.4k iwannabeelected  1.7 years ago

Hey, so I recently started flying in screenshot mode (without the UI), and I noticed that I'm feeling a bit uncomfrotable when I don't know what Targeting Mode is currently on. After reading the FT manual and searching the forum I found out that there is no simple way to output that info. But I found one. Still quite simple I must say, so I'm sharing it here.

So, first I setup two variables:

GNDmode

clamp01(SelectedWeapon="Rocket Pod" | SelectedWeapon="Rocket" | SelectedWeapon="Boom 25" | SelectedWeapon="Boom 50" | SelectedWeapon="Torpedo" | SelectedWeapon="Inferno" | SelectedWeapon="Cleaver")

AIRmode
clamp01(SelectedWeapon="Interceptor" | SelectedWeapon="Guardian")

Then the label that reads:

Targeting Mode:
{AIRmode+GNDmode < 1 ? "None" : (GNDmode = 1 ? "GND" : "AIR")}

So, that's basically it. The drawback of this method is it won't show a targeting mode if there are no weapons (THERE'S WORKAROUND). If you are going to use cannon, you should add its name to the corresponding variable.

BUT I wonder, is it possible to count button presses in FT? If yes, it could be another, more versatile method to show which targeting mode is on (by simply counting how many times the CycelTargetingMode button was pressed).

P.S. The code above uses the names that show up on the panel, not the internal names for the weapons. So if you renamed an Interceptor to MSL, you'd need to use that name instead of Interceptor. Or if there are any other modifications to standard weapons, you'll also need to take them into account.

  • Log in to leave a comment
  • Profile image

    Some WORKAROUND for not showing a targeting mode if there are no weapons (or they are not activated): add two more missiles (one air-to-air, one air-to-ground) with unique names and 0 locking range. Adjust the code so their names don't show up on the display (they still will be visible in the game UI, but we're talking about screenshot mode flying, don't we?).

    1.6 years ago
  • Profile image

    @IICXLVIICDLXXXIIIDCXLVII good point, thanks. I'll add it to the post

    1.7 years ago
  • Profile image
    11.5k JesusChrist

    @iwannabeelected Do note that the SelectedWeapon code uses the name that shows up on the panel, not the internal names for the weapons.

    So if I renamed a Interceptor to MSL, I'd need to use that name instead of Interceptor.

    1.7 years ago
  • Profile image

    @X99STRIKER the CODE tag doesn't work with CODE. Great.

    1.7 years ago
  • Profile image
    11.9k X99STRIKER

    @iwannabeelected
    The red text doesn’t work with all characters.

    1.7 years ago
  • Profile image

    Okay, what the fuck is going on with the formatting

    +1 1.7 years ago