Profile image

Press button via piston or LaunchCountermeasures automatic

154 friedzod  1.7 years ago

Hi there. if anybody know, if there way to press the button somehow via piston or Launch Countermeasures via activating some code or script? ( time period or condition )

  • Log in to leave a comment
  • Profile image

    @JesusChrist, @friedzod You actually can set a button (or a switch) to the LaunchCountermeasures input.
    You need to put inputId to LaunchCountermeasures and interactionType to Toggle.

    Now if you press the button once it will launch the countermeasures (at the rate defined by autoDispenseDelay) until you press it again.

    6 months ago
  • Profile image

    @JesusChrist ok, sorry

    1.6 years ago
  • Profile image
    11.5k JesusChrist

    As far as I know there is no way to make countermeasures fire off without manually pressing the button, the only code associated with that input is LaunchCountermeasures, which simply returns true if you're pressing the button and false if not.

    This seems to apply to most weapons as well, would be nice to be able to have this as a feature though.

    1.7 years ago
  • Profile image
    11.5k JesusChrist

    @driftanddriver In case you're using google translate, this is an english forum so most people won't understand what you mean if you talk in portuguese, you should probably translate what you say to english before posting it if you can't speak the language.

    1.7 years ago
  • Profile image
    154 friedzod

    @driftanddriver I mean that the only way to Launch Countermeasures is the press the button, but this is one time action button. I want to automate Countermeasures Launch process. I suggested, that there can be way to push cockpit button via piston.

    1.7 years ago
  • Profile image

    não entendi muito bem sua pergunta, mas se você está dizendo para "pressionar botão do cockpit para acionar um pistão sem usar o comando "Activate1~9" você poderia criar uma variavel boleana e atribuila ou input de um pistão e ao oltput do botão

    1.7 years ago