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 )
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 )
@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.
@JesusChrist ok, sorry
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.
@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.
@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.
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