Profile image

SOLVED: Is it possible to use the weapon selection as an input?

85.4k Walvis  3.7 years ago

For example, can I activate a rotor by pressing the air-to-air weapons?

Answer:
It is not possible to use a weapons group as input, however you can use the selection of one specific weapon as input.

This can be done by using the command SelectedWeapon = "weaponname"

Example:
If your missile is named 'Inferno', the input would be SelectedWeapon = "Inferno"

Thank you Ruvien0Republic0Officer!!

  • Log in to leave a comment
  • Profile image

    and also this is the code for this to work

    clamp01(ceil(smooth(clamp01(SelectedWeapon = "weaponname" & ammo(SelectedWeapon) > 0 ? 1 : 0 ), 3)))

    1.4 years ago
  • Profile image

    Is it possible to use it for two weapons? like example you want two types of weapons in the input and I only able to do in one weapons you all might understand what I'm saying in this style

    clamp01(ceil(smooth(clamp01(SelectedWeapon = "inferno" & ammo(SelectedWeapon) > 0 ? 1 : 0 ), 3)))(clamp01(ceil(smooth(clamp01(SelectedWeapon = "boom 50" & ammo(SelectedWeapon) > 0 ? 1 : 0 ), 3)))

    and if possible please fix it thank you
    Never mind I got it
    here's the solution

    clamp01(ceil(smooth(clamp01(SelectedWeapon = "Inferno" | SelectedWeapon="Boom-50"& ammo(SelectedWeapon) > 0 ? 1 : 0 ), 3)))

    1.4 years ago
  • Profile image
    85.4k Walvis
    2.2 years ago
  • Profile image

    How do I type it in I don’t understand and it’s really frustrating me

    2.2 years ago
  • Profile image
    85.4k Walvis

    @Ruvien0Republic0Officer Could you please share a screenshot of such a input line in a rotator? It is a bit unclear to me how I should use that as an input. :)

    Edit:
    Nvm, I got it!
    Than you!

    3.7 years ago
  • Profile image
    31.8k flame0w

    theres a code for that... try checking out @Natemomog H-13 Mynah transport helicopter, the helicopter door had that code

    +3 3.7 years ago